animation-direction

Defines whether an animation should play forwards, backwards, or alternate back and forth on every other cycle. Useful for creating smooth 'yo-yo' effects.

Quick example

.pulse {
  animation: pulse-scale 2s infinite;
  /* Makes the animation play forward then backward */
  animation-direction: alternate;
}

Quick facts

Initial value
normal
Inherited
No
Applies to
all elements and pseudo-elements
Animation type
notAnimatable

animation-direction Browser Support

Widely available Since 2015 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

Safe to use without fallbacks.

43+
16+
9+
12+
ESC