Animation Domain
Methods
Events
Types
Methods
Animation.disable #
Disables animation domain notifications.
Animation.enable #
Enables animation domain notifications.
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.getPlaybackRate #
Gets the playback rate of the document timeline.
Return Object
- playbackRate
-
number
Playback rate for animations on page.
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.
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.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.setPlaybackRate #
Sets the playback rate of the document timeline.
parameters
- playbackRate
-
number
Playback rate for animations on page
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.
Events
Animation.animationCanceled #
Event for when an animation has been cancelled.
parameters
- id
-
string
Id of the animation that was cancelled.
Animation.animationCreated #
Event for each animation that has been created.
parameters
- id
-
string
Id of the animation that was created.
Types
Animation.Animation #
Animation instance.
Type: object
properties
- id
-
string
Animation
's id. - name
-
string
Animation
's name. - 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. Milliseconds for time based animations and percentage [0 - 100] for scroll driven animations (i.e. when viewOrScrollTimeline exists). - 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. - viewOrScrollTimeline
-
ViewOrScrollTimeline
View or scroll timeline
Animation.AnimationEffect #
AnimationEffect instance
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. Milliseconds for time based animations and percentage [0 - 100] for scroll driven animations (i.e. when viewOrScrollTimeline exists). - 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.
Animation.KeyframesRule #
Keyframes Rule
Type: object
properties
- name
-
string
CSS keyframed animation's name.
- keyframes
-
array[ KeyframeStyle ]
List of animation keyframes.
Animation.KeyframeStyle #
Keyframe Style
Type: object
properties
- offset
-
string
Keyframe's time offset.
- easing
-
string
AnimationEffect
's timing function.
Animation.ViewOrScrollTimeline #
Timeline instance
Type: object
properties
- sourceNodeId
-
DOM.BackendNodeId
Scroll container node
- startOffset
-
number
Represents the starting scroll position of the timeline as a length offset in pixels from scroll origin.
- endOffset
-
number
Represents the ending scroll position of the timeline as a length offset in pixels from scroll origin.
- subjectNodeId
-
DOM.BackendNodeId
The element whose principal box's visibility in the scrollport defined the progress of the timeline. Does not exist for animations with ScrollTimeline
- axis
-
DOM.ScrollOrientation
Orientation of the scroll