CSS animation-play-state Property

CSS animation-play-state property specifies whether the animation is running or paused.

This property is generally used in JavaScript to play or pause the animation, or to check whether the animation is running or not.


  animation-play-state: running;
  animation-play-state: paused;

CSS Syntax

The animation-play-state property has the below syntax:

animation-play-state: running|paused|initial|inherit;

Property Values

The animation-play-state property accepts the following values:

runningThis is the default value. It specifies that the animation is running.
pausedSpecifies that the animation is paused.
initialSets the animation-play-state property to its default value(running).
inheritInherits the animation-play-state property from the parent element.

General Info

Default Valuerunning
JavaScript Usageelement.style.animationPlayState = “paused”;