Definition
Web Animations defines AnimationEffect
[Exposed=Window]
interface AnimationEffect {
EffectTiming getTiming();
ComputedEffectTiming getComputedTiming();
undefined updateTiming(optional OptionalEffectTiming timing = {});
};
This interface is extended in the following specifications:
- Web Animations Level 2
[Exposed=Window] partial interface AnimationEffect { // Timing hierarchy readonly attribute GroupEffect? parent; readonly attribute AnimationEffect? previousSibling; readonly attribute AnimationEffect? nextSibling; undefined before (AnimationEffect... effects); undefined after (AnimationEffect... effects); undefined replace (AnimationEffect... effects); undefined remove (); };
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface AnimationEffect {
EffectTiming getTiming();
ComputedEffectTiming getComputedTiming();
undefined updateTiming(optional OptionalEffectTiming timing = {});
// Timing hierarchy
readonly attribute GroupEffect? parent;
readonly attribute AnimationEffect? previousSibling;
readonly attribute AnimationEffect? nextSibling;
undefined before (AnimationEffect... effects);
undefined after (AnimationEffect... effects);
undefined replace (AnimationEffect... effects);
undefined remove ();
};
Methods and attributes that return objects implementing AnimationEffect
Referring IDL interfaces/dictionaries
Referring specifications
- CSS Animation Worklet API refers to
AnimationEffect
- Web Animations Level 2 refers to
AnimationEffect