Skip to main content

Function: cycleAnimation()

cycleAnimation(animation, delay): Mobject

Defined in: src/animation/updaters.ts:161

Loop a running animation forever as an updater on its mobject.

Delegates to turnAnimationIntoUpdater with cycle = true (CE cycle_animation).

Parameters​

animation​

Animation

The animation to loop.

delay​

number = 0

Seconds to wait before the animation starts. Default 0.

Returns​

Mobject

The animation's mobject, for chaining.