Skip to content

Animation Config

Each animation has a configuration that controls its playback behavior. These map directly to CSS animation properties.

SettingCSS PropertyValuesDefault
Nameanimation-nameAny valid CSS identifiernew-animation
Durationanimation-durationMilliseconds1000
Iteration Countanimation-iteration-countNumber or infinite1
Directionanimation-directionnormal, reverse, alternate, alternate-reversenormal
Fill Modeanimation-fill-modenone, forwards, backwards, bothboth
Default Easinganimation-timing-functionAny easing preset or cubic-bezier()ease
  • normal — plays forward each iteration
  • reverse — plays backward each iteration
  • alternate — plays forward, then backward, alternating each iteration
  • alternate-reverse — plays backward, then forward, alternating each iteration
  • none — element reverts to its original style before and after the animation
  • forwards — element retains the final keyframe values after the animation ends
  • backwards — element applies the first keyframe values during any delay before the animation starts
  • both — applies both forwards and backwards behavior