Animation Domain
Methods
- Animation.disable
- Animation.enable
- Animation.getCurrentTime
- Animation.getPlaybackRate
- Animation.releaseAnimations
- Animation.resolveAnimation
- Animation.seekAnimations
- Animation.setPaused
- Animation.setPlaybackRate
- Animation.setTiming
Events
- Animation.animationCanceled
- Animation.animationCreated
- Animation.animationStarted
- Animation.animationUpdated
Types
Methods
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
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
Optional
Animation
's source animation node.
cssId
Optional
string
A unique ID for Animation
representing the sources that triggered this CSS
animation/transition.
viewOrScrollTimeline
Optional
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
Optional
AnimationEffect
's target node.
keyframesRule
Optional
AnimationEffect
's keyframes.
easing
string
AnimationEffect
's timing function.
Animation.KeyframesRule #
Keyframes Rule
Type: object
Properties
name
Optional
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
Optional
Scroll container node
startOffset
Optional
number
Represents the starting scroll position of the timeline as a length offset in pixels from scroll origin.
endOffset
Optional
number
Represents the ending scroll position of the timeline as a length offset in pixels from scroll origin.
subjectNodeId
Optional
The element whose principal box's visibility in the scrollport defined the progress of the timeline. Does not exist for animations with ScrollTimeline
axis
Orientation of the scroll