Style animationPlayState Property
Style animationPlayState Property
The animationPlayState property is used to define whether the animation is running or paused. We can use it to stop animation in middle.
Syntax:-
Its syntax is:- object.style.animationPlayState OR object.style.animationPlayState = running|paused|initial|inherit
Return:-
Its return is:- string having animation-play-state property of an element
Further Explanation:-
Value | Description |
---|---|
running | Specifies that animation is running. |
paused | Specifies that animation is paused. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |