animation-direction
property specifies whether the animation should play in reverse.
The animation plays forward in each cycle. In other words, each animation cycle ends and resets to the starting point to begin again. This is the default behavior.
The animation alternates between running forwards and backwards. When running backwards, the animation steps backward and timing functions are also reversed. For example, ease-in becomes ease-out when reversed.
The animation runs backwards, playing from end to start.
The animation runs backwards on the first iteration, then forwards on the next, and continues alternating.
Initial value | normal |
Applies to | all elements |
Inherited | no |
Animatable | no |
LCD tables only load in the browser