Domains Accessibility Animation ApplicationCache CSS CacheStorage Console DOM DOMDebugger DOMStorage Database Debugger DeviceOrientation Emulation FileSystem HeapProfiler IndexedDB Input Inspector LayerTree Memory Network Page Power Profiler Rendering Runtime ScreenOrientation Security ServiceWorker Timeline Tracing Worker
Chrome Debugger Protocol Viewer

Animation Domain

Methods

enable

Enables animation domain notifications.

disable

Disables animation domain notifications.

getPlaybackRate

Gets the playback rate of the document timeline.

Return object
playbackRate
number Playback rate for animations on page.

setPlaybackRate

Sets the playback rate of the document timeline.

Parameters
playbackRate
number Playback rate for animations on page

setCurrentTime

Sets the current time of the document timeline.

Parameters
currentTime
number Current time for the page animation timeline

setTiming

Sets the timing of an animation node.

Parameters
playerId
string AnimationPlayer id.
duration
number Duration of the animation.
delay
number Delay of the animation.

Events

animationCreated

Event for each animation player that has been created.

Parameters
player
Animation Animation that was created.
resetTimeline
boolean Whether the timeline should be reset.

animationCanceled

Event for Animations in the frontend that have been cancelled.

Parameters
id
string Id of the Animation that was cancelled.

Types

Animation

Animation instance.

Type: object

Properties
id
string Animation's id.
pausedState
boolean Animation's internal paused state.
playState
string Animation's play state.
playbackRate
number Animation's playback rate.
startTime
number Animation's start time.
currentTime
number Animation's current time.
source
AnimationEffect Animation's source animation node.
type
string Animation type of Animation. Allowed values: CSSTransition, CSSAnimation, WebAnimation.

AnimationEffect

AnimationEffect instance

Type: object

Properties
delay
number AnimationEffect's delay.
endDelay
number AnimationEffect's end delay.
playbackRate
number AnimationEffect's playbackRate.
iterationStart
number AnimationEffect's iteration start.
iterations
number AnimationEffect's iterations.
duration
number AnimationEffect's iteration duration.
direction
string AnimationEffect's playback direction.
fill
string AnimationEffect's fill mode.
name
string AnimationEffect's name.
backendNodeId
DOM.BackendNodeId AnimationEffect's target node.
keyframesRule
KeyframesRule AnimationEffect's keyframes.
easing
string AnimationEffect's timing function.

KeyframesRule

Keyframes Rule

Type: object

Properties
name
string CSS keyframed animation's name.
keyframes
array [ KeyframeStyle ] List of animation keyframes.

KeyframeStyle

Keyframe Style

Type: object

Properties
offset
string Keyframe's time offset.
easing
string AnimationEffect's timing function.