animation-direction

Controls animation playback direction. adial is used for ping-pong (alternating) animations.

Class List

ClassCSSDescription
adinanimation-direction: normalForward playback (default)
adiranimation-direction: reverseReverse playback
adialanimation-direction: alternateAlternating playback (forward → reverse)
adialranimation-direction: alternate-reverseReverse alternating (reverse → forward)

Usage Examples

<!-- Alternating animation -->
<div class="adial aicinf">
  Smoothly alternating element
</div>

<!-- Reverse playback -->
<div class="adir">
  Element playing in reverse
</div>

When to Use What?

SituationRecommended
Normal playbackadin
Reverse playbackadir
Smooth alternation (ping-pong)adial
Reverse alternationadialr