stable (1.2) latest (tip-of-tree) v8-inspector (node) Home
Domains
Accessibility Animation ApplicationCache Audits Browser CSS CacheStorage Console DOM DOMDebugger DOMSnapshot DOMStorage Database Debugger DeviceOrientation Emulation HeadlessExperimental HeapProfiler IO IndexedDB Input Inspector LayerTree Log Memory Network Overlay Page Performance Profiler Runtime Schema Security ServiceWorker Storage SystemInfo Target Tethering Tracing
Chrome DevTools Protocol Viewer - latest (tip-of-tree)

Animation Domain

Experimental

Methods

Animation.enable

Enables animation domain notifications.

Animation.disable

Disables animation domain notifications.

Animation.getPlaybackRate

Gets the playback rate of the document timeline.

Return object
playbackRate
number Playback rate for animations on page.

Animation.setPlaybackRate

Sets the playback rate of the document timeline.

Parameters
playbackRate
number Playback rate for animations on page

Animation.getCurrentTime

Returns the current time of the an animation.

Parameters
id
string Id of animation.
Return object
currentTime
number Current time of the page.

Animation.setPaused

Sets the paused state of a set of animations.

Parameters
animations
array [string] Animations to set the pause state of.
paused
boolean Paused state to set to.

Animation.setTiming

Sets the timing of an animation node.

Parameters
animationId
string Animation id.
duration
number Duration of the animation.
delay
number Delay of the animation.

Animation.seekAnimations

Seek a set of animations to a particular time within each animation.

Parameters
animations
array [string] List of animation ids to seek.
currentTime
number Set the current time of each animation.

Animation.releaseAnimations

Releases a set of animations to no longer be manipulated.

Parameters
animations
array [string] List of animation ids to seek.

Animation.resolveAnimation

Gets the remote object of the Animation.

Parameters
animationId
string Animation id.
Return object
remoteObject
Runtime.RemoteObject Corresponding remote object.

Events

Animation.animationCreated

Event for each animation that has been created.

Parameters
id
string Id of the animation that was created.

Animation.animationStarted

Event for animation that has been started.

Parameters
animation
Animation Animation that was started.

Animation.animationCanceled

Event for when an animation has been cancelled.

Parameters
id
string Id of the animation that was cancelled.

Types

Animation

Animation instance. Experimental

Type: object

Properties
id
string Animation's id.
name
string Animation's name.
pausedState
boolean Animation's internal paused state. Experimental
playState
string Animation's play state.
playbackRate
number Animation's playback rate.
startTime
number Animation's start time.
currentTime
number Animation's current time.
type
string Animation type of Animation. Allowed values: CSSTransition, CSSAnimation, WebAnimation.
source
AnimationEffect Animation's source animation node.
cssId
string A unique ID for Animation representing the sources that triggered this CSS animation/transition.

AnimationEffect

AnimationEffect instance Experimental

Type: object

Properties
delay
number AnimationEffect's delay.
endDelay
number AnimationEffect's end delay.
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.
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.