css-animation-worklet.idl (1259B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: CSS Animation Worklet API (https://drafts.css-houdini.org/css-animationworklet-1/) 5 6 [Exposed=Window] 7 partial namespace CSS { 8 [SameObject] readonly attribute Worklet animationWorklet; 9 }; 10 11 [ Global=(Worklet,AnimationWorklet), Exposed=AnimationWorklet ] 12 interface AnimationWorkletGlobalScope : WorkletGlobalScope { 13 undefined registerAnimator(DOMString name, AnimatorInstanceConstructor animatorCtor); 14 }; 15 16 callback AnimatorInstanceConstructor = any (any options, optional any state); 17 18 [ Exposed=AnimationWorklet ] 19 interface WorkletAnimationEffect { 20 EffectTiming getTiming(); 21 ComputedEffectTiming getComputedTiming(); 22 attribute double? localTime; 23 }; 24 25 [Exposed=Window] 26 interface WorkletAnimation : Animation { 27 constructor(DOMString animatorName, 28 optional (AnimationEffect or sequence<AnimationEffect>)? effects = null, 29 optional AnimationTimeline? timeline, 30 optional any options); 31 readonly attribute DOMString animatorName; 32 }; 33 34 [Exposed=AnimationWorklet] 35 interface WorkletGroupEffect { 36 sequence<WorkletAnimationEffect> getChildren(); 37 };