3
"description": "Domain for tracking/modifying Web Animations, as well as CSS (declarative) animations and transitions.",
4
"debuggableTypes": ["page", "web-page"],
5
"targetTypes": ["page"],
10
"description": "Unique Web Animation identifier."
13
"id": "AnimationState",
15
"enum": ["ready", "delayed", "active", "canceled", "done"]
18
"id": "PlaybackDirection",
20
"enum": ["normal", "reverse", "alternate", "alternate-reverse"]
25
"enum": ["none", "forwards", "backwards", "both", "auto"]
31
{ "name": "animationId", "$ref": "AnimationId" },
32
{ "name": "cssAnimationName", "type": "string", "optional": true, "description": "Equal to the corresponding `animation-name` CSS property. Should not be provided if `transitionProperty` is also provided." },
33
{ "name": "cssTransitionProperty", "type": "string", "optional": true, "description": "Equal to the corresponding `transition-property` CSS property. Should not be provided if `animationName` is also provided." },
34
{ "name": "effect", "$ref": "Effect", "optional": true },
35
{ "name": "backtrace", "type": "array", "items": { "$ref": "Console.CallFrame" }, "optional": true, "description": "Backtrace that was captured when this `WebAnimation` was created." }
42
{ "name": "startDelay", "type": "number", "optional": true },
43
{ "name": "endDelay", "type": "number", "optional": true },
44
{ "name": "iterationCount", "type": "number", "optional": true, "description": "Number of iterations in the animation." },
45
{ "name": "iterationStart", "type": "number", "optional": true, "description": "Index of which iteration to start at." },
46
{ "name": "iterationDuration", "type": "number", "optional": true, "description": "Total time of each iteration, measured in milliseconds." },
47
{ "name": "timingFunction", "type": "string", "optional": true, "description": "CSS timing function of the overall animation." },
48
{ "name": "playbackDirection", "$ref": "PlaybackDirection", "optional": true },
49
{ "name": "fillMode", "$ref": "FillMode", "optional": true },
50
{ "name": "keyframes", "type": "array", "items": { "$ref": "Keyframe" }, "optional": true }
57
{ "name": "offset", "type": "number", "description": "Decimal percentage [0,1] representing where this keyframe is in the entire duration of the animation." },
58
{ "name": "easing", "type": "string", "optional": true, "description": "CSS timing function for how the `style` is applied." },
59
{ "name": "style", "type": "string", "optional": true, "description": "CSS style declaration of the CSS properties that will be animated." }
63
"id": "TrackingUpdate",
66
{ "name": "trackingAnimationId", "$ref": "AnimationId" },
67
{ "name": "animationState", "$ref": "AnimationState" },
68
{ "name": "nodeId", "$ref": "DOM.NodeId", "optional": true },
69
{ "name": "animationName", "type": "string", "optional": true, "description": "Equal to the corresponding `animation-name` CSS property. Should not be provided if `transitionProperty` is also provided." },
70
{ "name": "transitionProperty", "type": "string", "optional": true, "description": "Equal to the corresponding `transition-property` CSS property. Should not be provided if `animationName` is also provided." }
77
"description": "Enables Canvas domain events."
81
"description": "Disables Canvas domain events."
84
"name": "requestEffectTarget",
85
"description": "Gets the `DOM.NodeId` for the target of the effect of the animation with the given `AnimationId`.",
87
{ "name": "animationId", "$ref": "AnimationId" }
90
{ "name": "nodeId", "$ref": "DOM.NodeId" }
94
"name": "resolveAnimation",
95
"description": "Resolves JavaScript `WebAnimation` object for given `AnimationId`.",
97
{ "name": "animationId", "$ref": "AnimationId" },
98
{ "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }
101
{ "name": "object", "$ref": "Runtime.RemoteObject" }
105
"name": "startTracking",
106
"description": "Start tracking animations. This will produce a `trackingStart` event."
109
"name": "stopTracking",
110
"description": "Stop tracking animations. This will produce a `trackingComplete` event."
115
"name": "animationCreated",
116
"description": "Dispatched whenever a `WebAnimation` is created.",
118
{ "name": "animation", "$ref": "Animation" }
122
"name": "effectChanged",
123
"description": "Dispatched whenever the effect of any animation is changed in any way.",
125
{ "name": "animationId", "$ref": "AnimationId" },
126
{ "name": "effect", "$ref": "Effect", "optional": true, "description": "This is omitted when the effect is removed without a replacement." }
130
"name": "targetChanged",
131
"description": "Dispatched whenever the target of any effect of any animation is changed in any way.",
133
{ "name": "animationId", "$ref": "AnimationId" }
137
"name": "animationDestroyed",
138
"description": "Dispatched whenever a `WebAnimation` is destroyed.",
140
{ "name": "animationId", "$ref": "AnimationId" }
144
"name": "trackingStart",
145
"description": "Dispatched after `startTracking` command.",
147
{ "name": "timestamp", "type": "number" }
151
"name": "trackingUpdate",
152
"description": "Fired for each phase of Web Animation.",
154
{ "name": "timestamp", "type": "number" },
155
{ "name": "event", "$ref": "TrackingUpdate" }
159
"name": "trackingComplete",
160
"description": "Dispatched after `stopTracking` command.",
162
{ "name": "timestamp", "type": "number" }