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 stringId of animation.
Return object
currentTime numberCurrent time of the page.
Animation.getPlaybackRate #
Gets the playback rate of the document timeline.
Return object
playbackRate numberPlayback 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 stringAnimation 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 numberSet 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 booleanPaused state to set to.
Animation.setPlaybackRate #
Sets the playback rate of the document timeline.
Parameters
playbackRate numberPlayback rate for animations on page
Animation.setTiming #
Sets the timing of an animation node.
Parameters
animationId stringAnimation id.
duration numberDuration of the animation.
delay numberDelay of the animation.
Events
Animation.animationCanceled #
Event for when an animation has been cancelled.
Parameters
id stringId of the animation that was cancelled.
Animation.animationCreated #
Event for each animation that has been created.
Parameters
id stringId of the animation that was created.
Types
Animation.Animation #
Animation instance.
Type: object
Properties
id stringAnimation's id.
name stringAnimation's name.
pausedState booleanAnimation's internal paused state.
playState stringAnimation's play state.
playbackRate numberAnimation's playback rate.
startTime numberAnimation's start time.
Milliseconds for time based animations and
percentage [0 - 100] for scroll driven animations
(i.e. when viewOrScrollTimeline exists).
currentTime numberAnimation's current time.
type stringAnimation type of Animation.
Allowed values: CSSTransition, CSSAnimation, WebAnimation
sourceOptional
Animation's source animation node.
cssIdOptional
stringA unique ID for Animation representing the sources that triggered this CSS
animation/transition.
viewOrScrollTimelineOptional
View or scroll timeline
Animation.AnimationEffect #
AnimationEffect instance
Type: object
Properties
delay numberAnimationEffect's delay.
endDelay numberAnimationEffect's end delay.
iterationStart numberAnimationEffect's iteration start.
iterations numberAnimationEffect's iterations.
duration numberAnimationEffect's iteration duration.
Milliseconds for time based animations and
percentage [0 - 100] for scroll driven animations
(i.e. when viewOrScrollTimeline exists).
direction stringAnimationEffect's playback direction.
fill stringAnimationEffect's fill mode.
backendNodeIdOptional
AnimationEffect's target node.
keyframesRuleOptional
AnimationEffect's keyframes.
easing stringAnimationEffect's timing function.
Animation.KeyframesRule #
Keyframes Rule
Type: object
Properties
nameOptional
stringCSS keyframed animation's name.
keyframes array[ KeyframeStyle ]List of animation keyframes.
Animation.KeyframeStyle #
Keyframe Style
Type: object
Properties
offset stringKeyframe's time offset.
easing stringAnimationEffect's timing function.
Animation.ViewOrScrollTimeline #
Timeline instance
Type: object
Properties
sourceNodeIdOptional
Scroll container node
startOffsetOptional
numberRepresents the starting scroll position of the timeline as a length offset in pixels from scroll origin.
endOffsetOptional
numberRepresents the ending scroll position of the timeline as a length offset in pixels from scroll origin.
subjectNodeIdOptional
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