Skip to main content

Type Alias: LoopMode

LoopMode = "none" | "loop" | "pingpong"

Defined in: animations/components/animation-component.ts:62

Controls how an animated property behaves once it reaches endValue.

  • 'none': the animation stops and is removed.
  • 'loop': elapsed resets to 0 and the animation restarts from startValue.
  • 'pingpong': elapsed resets to 0 and startValue/endValue are swapped, so the animation plays in reverse on the next iteration.