blob: 82d34a3ea2a2dafb82abc7d1adfdea4641e826de [file] [log] [blame]
Victor Porof6e096922022-06-10 13:01:05 +00001// 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]
7partial namespace CSS {
8 [SameObject] readonly attribute Worklet animationWorklet;
9};
10
11[ Global=(Worklet,AnimationWorklet), Exposed=AnimationWorklet ]
12interface AnimationWorkletGlobalScope : WorkletGlobalScope {
13 undefined registerAnimator(DOMString name, AnimatorInstanceConstructor animatorCtor);
14};
15
16callback AnimatorInstanceConstructor = any (any options, optional any state);
17
18[ Exposed=AnimationWorklet ]
19interface WorkletAnimationEffect {
20 EffectTiming getTiming();
21 ComputedEffectTiming getComputedTiming();
22 attribute double? localTime;
23};
24
25[Exposed=Window]
26interface 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]
35interface WorkletGroupEffect {
36 sequence<WorkletAnimationEffect> getChildren();
37};