ladybird/Libraries/LibWeb/Animations/Animatable.idl

21 lines
765 B
Text
Raw Normal View History

2023-11-05 10:20:10 -07:00
#import <Animations/Animation.idl>
#import <Animations/KeyframeEffect.idl>
// 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 = {});
};
// https://drafts.csswg.org/web-animations-1/#dictdef-keyframeanimationoptions
2023-11-05 10:20:10 -07:00
dictionary KeyframeAnimationOptions : KeyframeEffectOptions {
DOMString id = "";
AnimationTimeline? timeline;
};
// https://drafts.csswg.org/web-animations-1/#dictdef-getanimationsoptions
2023-11-05 10:20:10 -07:00
dictionary GetAnimationsOptions {
boolean subtree = false;
CSSOMString? pseudoElement = null;
2023-11-05 10:20:10 -07:00
};