Specifies the direction of play for an animation cycle.
This property is read/write.
![]() |
Syntax
animation-direction: [ normal | alternate | reverse | alternate-reverse ] [ , [ normal | alternate | reverse | alternate-reverse ] ] *
Property values
One or more direction keywords, separated by commas.
normal-
Initial value. The animation is played in the forward direction.
reverse-
The animation cycles are played in the reverse direction of the direction in which they were specified.
alternate-
The animation cycles alternate between playing in the forward direction (odd iterations) and the reverse direction (even iterations).
alternate-reverse-
The animation cycles alternate between playing in the reverse direction (odd iterations) and the forward direction (even iterations).
CSS information
| Applies To | block-level and inline-level elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value | normal |
Standards information
- CSS Animations Module Level 3, Section 3.6
Remarks
To learn more about Cascading Style Sheets (CSS) animations, see How to bring your webpage to life with CSS transforms, transitions, and animations.
See also
- CSSStyleDeclaration
- currentStyle
- style
- a
- abbr
- b
- bdo
- br
- cite
- code
- em
- i
- img
- input
- kbd
- label
- q
- samp
- select
- small
- span
- strong
- sub
- sup
- textArea
- var
- address
- blockQuote
- div
- dl
- fieldSet
- form
- ol
- p
- pre
- table
- ul
- dd
- dt
- li
- tBody
- td
- tFoot
- th
- tHead
- tr
- button
- del
- ins
- map
- object
- script
- How to bring your webpage to life with CSS transforms, transitions, and animations
- Internet Explorer 10 Guide for Developers: CSS Animations
Build date: 11/29/2012
