API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classTweenSequencer

@codexo/exojs / animation / stable

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.

2
props
11
methods
0
events
Import
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.

Constructors 1
new(manager?: TweenManager): TweenSequencer
Methods 11
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
Properties 2
progress: number
state: TweenSequencerState
Source