CSSAnimation
Module: JavaScript DOM API
The CSSAnimation object for dom element.
#include <CSSAnimation.idl>
Inherits from Animation
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| readonly attribute DOMString | animationName The name of the animation. |
Additional inherited members
Section titled “Additional inherited members”Public Functions inherited from Animation
| Name | |
|---|---|
| void | play() Starts playing the animation if paused, does nothing if already running. |
| void | pause() Pauses the animation if running, does nothing if finished/paused. |
| void | reverse() Reverses the animations playbackRate and plays it. |
| void | playFromTo(double playTime, double pauseTime, optional AnyCallback callback) Plays an animation from the selected time to the pause time. When the pauseTime is reached, the animation is automatically paused and the callback is invoked. |
| void | commitStyles() |
| void | finish() |
| void | cancel() |
| void | persist() |
Public Attributes inherited from Animation
| Name | |
|---|---|
| attribute double | currentTime The current time of the animation. |
| attribute double | playbackRate The playback rate of the animation. |
| attribute EventSetter | finish |
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable animationName
Section titled “variable animationName”readonly attribute DOMString animationName;The name of the animation.
© 2026 Coherent Labs. All rights reserved.