Promise that resolves when the animation finishes:
Or throws when the animation is cancelled:
Note: If any one of the animating values is cancelled or interrupted by a new animation,
finished will throw.
Get/set the current play time of the animation in seconds. This can be used to scrub through the animation.
Get the current play time of the animation in seconds. This can be especially useful when an animation has used the default duration, or when a timeline has dynamically generated a duration from the provided sequence.
This prop is currently read-only.
Get/set the current playback rate of the animation.
1is normal time.
2doubles the playback rate.
Pauses the animation until resumed with
Plays a paused animation.
Immediately completes the animation and commits the final keyframe to the element's styles.
Cancels the animation and reverts the element to its underlying styles.
Cancels the animation and commits the current animation state to the element's styles.
Stay updated with the Motion One newsletter. We don't spam, and unsubscription is instant.