asp.net.ph

Skip Navigation LinksAbakada: Back to Basics > Language References > CSS Properties > Animation Properties > animation-play-state Property

animation-play-state | animationPlayState Property


Defines whether the animation is running or paused.

Syntax

CSS { animation-play-state: running | paused }
Script object.style.animationPlayState = running | paused

Possible Values


Parameter Description Valid Values
running The animation is currently playing. the keyword running
paused The animation is currently paused. the keyword paused

The property is read/write with a default value of running; this attribute is not inherited.

Remarks

The animation-play-state property sets whether an animation is running or paused.

animation-play-state is specified with either the keywords running or paused.

NOTE: While the separate animation properties can be set individually, the shorthand animation property offers a convenient option to set all animation properties at once.

Example

For a brief overview, please see Understanding and Using CSS Animations.

See Also

animation, animation-composition, animation-delay, animation-direction, animation-duration, animation-fill-mode, animation-iteration-count, animation-name, animation-timeline, animation-timing-function



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note