Definition
Web Animations defines KeyframeEffect
[Exposed=Window]
interface KeyframeEffect : AnimationEffect {
constructor(Element? target,
object? keyframes,
optional (unrestricted double or KeyframeEffectOptions) options = {});
constructor(KeyframeEffect source);
attribute Element? target;
attribute CSSOMString? pseudoElement;
attribute CompositeOperation composite;
sequence<object> getKeyframes();
undefined setKeyframes(object? keyframes);
};
This interface is extended in the following specifications:
- Web Animations Level 2
partial interface KeyframeEffect { attribute IterationCompositeOperation iterationComposite; };
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface KeyframeEffect : AnimationEffect {
constructor(Element? target,
object? keyframes,
optional (unrestricted double or KeyframeEffectOptions) options = {});
constructor(KeyframeEffect source);
attribute Element? target;
attribute CSSOMString? pseudoElement;
attribute CompositeOperation composite;
sequence<object> getKeyframes();
undefined setKeyframes(object? keyframes);
attribute IterationCompositeOperation iterationComposite;
};
Methods and attributes that return objects implementing KeyframeEffect
Referring IDL interfaces/dictionaries
Referring specifications
- Web Animations Level 2 refers to
KeyframeEffect