CSSAnimation
The CSSAnimation
interface of the Web Animations API represents an Animation object.
Properties
The animationName
property of the specifies one or more keyframe at-rules which describe the animation applied to the element.
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 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 synchronizing its playback position.