Skip to content

Animation Direction

Set animation direction

Syntax

visual="animation-direction:[value]"

Values

ValueCSS OutputDescription
normalanimation-direction: normalNormal direction
reverseanimation-direction: reverseReverse direction
alternateanimation-direction: alternateAlternate direction
alternate-reverseanimation-direction: alternate-reverseAlternate reverse

Examples

html
<div visual="animate:bounce animation-direction:alternate">Alternating</div>

Preview

Animation Direction

visual="animation-direction:alternate" - Control playback direction

normal
reverse
alternate
View Code
html
<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <div space="p:small" visual="bg:primary text:white rounded:small animate:spin animation-direction:normal">normal</div>
  <div space="p:small" visual="bg:primary text:white rounded:small animate:spin animation-direction:reverse">reverse</div>
  <div space="p:small" visual="bg:primary text:white rounded:small animate:spin animation-direction:alternate">alternate</div>
</div>