Animation
The Animation interface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source.
Inheritors
Constructors
Properties
The Animation.currentTime property of the Web Animations API returns and sets the current time value of the animation in milliseconds, whether running or paused.
The Animation.effect property of the Web Animations API gets and sets the target effect of an animation.
The overallProgress read-only property of the Animation interface returns a number between 0 and 1 indicating the animation's overall progress towards its finished state.
The Animation.playbackRate property of the Web Animations API returns or sets the playback rate of the animation.
The read-only Animation.playState property of the Web Animations API returns an enumerated value describing the playback state of an animation.
The read-only Animation.replaceState property of the Web Animations API indicates whether the animation has been removed by the browser automatically after being replaced by another animation.
The Animation.startTime property of the Animation interface is a double-precision floating-point value which indicates the scheduled time when an animation's playback should begin.
The Animation.timeline property of the Animation interface returns or sets the AnimationTimeline associated with this animation.
Functions
The commitStyles() method of the Web Animations API's Animation interface writes the computed values of the animation's current styles into its target element's style attribute.
The updatePlaybackRate() method of the Web Animations API's Animation Interface sets the speed of an animation after first synchronizing its playback position.