CSS animation-play-state Property

Definition and Usage

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

Note: Use this property in JavaScript to pause an animation in the middle of a cycle.

Example

Pause an animation: div {
  animation-play-state: paused;
}

Leave a comment

Your email address will not be published. Required fields are marked *