API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTweenSequencer
Composes multiple Tween instances into a multi-stage animation. Each stage added via TweenSequencer.then plays after the previous one finishes. Within a single stage, multiple tweens run simultaneously (parallel); the stage advances when **all** of them complete. Delay stages inserted via TweenSequencer.wait create a timed pause between stages without needing a dummy tween. The sequencer integrates with TweenManager via TweenManager.addTicker so it is driven automatically each frame. It can also be used stand-alone by calling TweenSequencer.update manually — in that mode the sequencer also advances its child tweens.
import { TweenSequencer } from '@codexo/exojs' Composes multiple Tween instances into a multi-stage animation.
Each stage added via TweenSequencer.then plays after the previous one finishes. Within a single stage, multiple tweens run simultaneously (parallel); the stage advances when **all** of them complete.
Delay stages inserted via TweenSequencer.wait create a timed pause between stages without needing a dummy tween.
The sequencer integrates with TweenManager via TweenManager.addTicker so it is driven automatically each frame. It can also be used stand-alone by calling TweenSequencer.update manually — in that mode the sequencer also advances its child tweens.
new(manager?: TweenManager): TweenSequencer onComplete(cb: object): this onStart(cb: object): this pause(): this repeat(count: number): this resume(): this start(): this stop(): this then(tween: Tween<object> | Tween<object>[]): this update(deltaSeconds: number): void wait(seconds: number): this yoyo(enabled: boolean): this progress: number state: TweenSequencerState