Style animationFillMode Property
Style animationFillMode Property
The animationFillMode property is used to specify what styles will apply for the element when the animation is not playing i.e, animation when finished or delayed.
Syntax:-
Its syntax is:- object.style.animationFillMode OR object.style.animationFillMode = none|forwards|backwards|both|initial|inherit
Return:-
Its return is:- string having animation-fill-mode property of an element
Further Explanation:-
Value | Description |
---|---|
none | The animation will not apply any styles to the target. |
forwards | The animation will apply the property values for the time the animation ended |
backwards | The animation will apply the property values for the time the animation started |
both | The animation will follow the rules for both forwards and backwards. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |