2023-11-05 10:20:10 -07:00
|
|
|
#import <Animations/Animation.idl>
|
|
|
|
#import <Animations/KeyframeEffect.idl>
|
|
|
|
|
2024-11-08 15:41:49 +00:00
|
|
|
// https://drafts.csswg.org/web-animations-1/#the-animatable-interface-mixin
|
2023-11-05 10:20:10 -07:00
|
|
|
interface mixin Animatable {
|
|
|
|
Animation animate(object? keyframes, optional (unrestricted double or KeyframeAnimationOptions) options = {});
|
|
|
|
sequence<Animation> getAnimations(optional GetAnimationsOptions options = {});
|
|
|
|
};
|
|
|
|
|
2024-11-08 15:41:49 +00:00
|
|
|
// https://drafts.csswg.org/web-animations-1/#dictdef-keyframeanimationoptions
|
2023-11-05 10:20:10 -07:00
|
|
|
dictionary KeyframeAnimationOptions : KeyframeEffectOptions {
|
|
|
|
DOMString id = "";
|
|
|
|
AnimationTimeline? timeline;
|
|
|
|
};
|
|
|
|
|
2024-11-08 15:41:49 +00:00
|
|
|
// https://drafts.csswg.org/web-animations-1/#dictdef-getanimationsoptions
|
2023-11-05 10:20:10 -07:00
|
|
|
dictionary GetAnimationsOptions {
|
|
|
|
boolean subtree = false;
|
2024-11-08 15:41:49 +00:00
|
|
|
CSSOMString? pseudoElement = null;
|
2023-11-05 10:20:10 -07:00
|
|
|
};
|