Specifies the direction of play for an animation cycle.
This property is read/write.
animation-direction: [ normal | alternate | reverse | alternate-reverse ] [ , [ normal | alternate | reverse | alternate-reverse ] ] *
One or more direction keywords, separated by commas.
Initial value. The animation is played in the forward direction.
The animation cycles are played in the reverse direction of the direction in which they were specified.
The animation cycles alternate between playing in the forward direction (odd iterations) and the reverse direction (even iterations).
The animation cycles alternate between playing in the reverse direction (odd iterations) and the forward direction (even iterations).
|Applies To||block-level and inline-level elements|
- CSS Animations Module Level 3, Section 3.6
To learn more about CSS animations, see How to bring your webpage to life with CSS transforms, transitions, and animations.
As of Internet Explorer for Windows Phone 8.1 Update, Internet Explorer for Windows Phone supports "-webkit-animation-direction" as an alias for this property.
- How to bring your webpage to life with CSS transforms, transitions, and animations
- Internet Explorer 10 Guide for Developers: CSS Animations