CSS animation-direction Property
Specifies whether the animation should be played backwards on alternate cycles.
Syntax
Property Values
| Value | Description |
|---|---|
| normal | The animation is played backwards. This is the default setting. |
| reverse | The animation is performed in the opposite direction, i.e. backward. |
| alternate | The animation is performed backwards first, then forwards. |
| alternate-reverse | The animation is played backwards first, then forwards. |
| initial | Set this property's value to the default. |
| inherit | This attribute is inherited from its parent element. |
Supported Browsers
| Element | Chrome | Firefox | Safari | Edge / IE | Opera |
|---|---|---|---|---|---|
| animation-direction |
43.0
4.0 -webkit- |
16.0
5.0 -moz- |
9.0
4.0 -webkit- |
10.0 |
30.0
15.0 -webkit- 12.0 -o- |