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
Do not use the Microsoft vendor prefix ("-ms-") before the Cascading Style Sheets (CSS) animations properties. They are supported unprefixed in Internet Explorer 10 and later.
To learn more about CSS animations, see How to bring your webpage to life with CSS transforms, transitions, and animations.
- How to bring your webpage to life with CSS transforms, transitions, and animations
- Internet Explorer 10 Guide for Developers: CSS Animations
Build date: 2/14/2014