KeyframeEffect.idl [plain text]
typedef USVString CSSOMString;
[
EnabledAtRuntime=WebAnimations,
Exposed=Window,
JSGenerateToNativeObject,
] interface KeyframeEffect : AnimationEffect {
[CallWith=GlobalObject, MayThrowException] constructor(Element? target, object? keyframes, optional (unrestricted double or KeyframeEffectOptions) options);
[CallWith=GlobalObject, MayThrowException] constructor(KeyframeEffect source);
attribute Element? target;
[MayThrowException] attribute CSSOMString? pseudoElement;
[EnabledAtRuntime=WebAnimationsCompositeOperations] attribute IterationCompositeOperation iterationComposite;
[EnabledAtRuntime=WebAnimationsCompositeOperations] attribute CompositeOperation composite;
[CallWith=GlobalObject, ImplementedAs=getBindingsKeyframes] sequence<object> getKeyframes();
[MayThrowException, CallWith=GlobalObject, ImplementedAs=setBindingsKeyframes] void setKeyframes(object? keyframes);
};
dictionary BasePropertyIndexedKeyframe {
(sequence<double?> or double?) offset = [];
(sequence<DOMString> or DOMString) easing = [];
(sequence<CompositeOperationOrAuto> or CompositeOperationOrAuto) composite = [];
};
dictionary BaseKeyframe {
double? offset = null;
DOMString easing = "linear";
CompositeOperationOrAuto composite = "auto";
};
[
JSGenerateToJSObject
] dictionary BaseComputedKeyframe {
double? offset = null;
double computedOffset;
DOMString easing = "linear";
CompositeOperationOrAuto composite = "auto";
};