animation-direction
The animation-direction property specifies whether an animation plays forward, backward, or alternates.
Formal Syntax
<single-animation-direction>#
JavaScript Access
// Access via element.style
element.style.animationDirection = 'normal';
Browser Support
| Feature | Chrome | Firefox | Safari | Edge |
|---|---|---|---|---|
| animation-direction | 43 | 16 | 9 | 12 |
| alternate | 3 | 5 | 4 | 12 |
| alternate-reverse | 19 | 16 | 6 | 12 |
| normal | 3 | 5 | 4 | 12 |
| reverse | 19 | 16 | 6 | 12 |
Related Properties
- animation
- animation-composition
- animation-delay
- animation-duration
- animation-fill-mode
- animation-iteration-count
- animation-name
- animation-play-state
- animation-range
- animation-range-end
- animation-range-start
- animation-timeline
- animation-timing-function
- scroll-timeline
- scroll-timeline-axis
- scroll-timeline-name
- timeline-scope
- transition
- transition-behavior
- transition-delay
- transition-duration
- transition-property
- transition-timing-function
- view-timeline
- view-timeline-axis
- view-timeline-inset
- view-timeline-name
- view-transition-class
- view-transition-name
- view-transition-group ๐งช
- animation-range-center ๐ง
- animation-trigger ๐ง
- timeline-trigger ๐ง
- timeline-trigger-exit-range ๐ง
- timeline-trigger-exit-range-end ๐ง
- timeline-trigger-exit-range-start ๐ง
- timeline-trigger-name ๐ง
- timeline-trigger-range ๐ง
- timeline-trigger-range-end ๐ง
- timeline-trigger-range-start ๐ง
- timeline-trigger-source ๐ง