CSS Property animation-play-state

The animation-play-state property specifies whether or not a CSS animation is running or paused.

When Associate in Nursing animation is paused, the animation continues to use to the part with the progress it had created before being paused. this implies that no matter values the animation has reached can still be applied to the part whereas the animation is paused. once unpaused (set back to running), it restarts from wherever it left off, as if the “clock” that controls the animation had stopped and began once more.

You can specify one or multiple comma-separated animation-play-state values. once you give an inventory of comma-separated values, this list is sometimes mapped to an inventory of values provided by alternative animation-related properties, like the animation-delay, animation-timing-function, and animation-name properties, among others. every list of values in these properties is treated reasonably like Associate in Nursing array, wherever every price in an exceedingly list of values has its own index. Then, every price in an exceedingly list of prices is mapped to its corresponding value with constant index within the list provided within the alternative properties.

For example, if you give 2 animation-play-state values, then the primary price determines the play state of the animation of the primary animation within the list of animation names provided by animation-name, and therefore the second play state specifies the play state of the second animation.