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 TweenSystem via TweenSystem.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 TweenSystem via TweenSystem.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.
onComplete(cb: () => void): thisonStart(cb: () => void): thispause(): thisrepeat(count: number): thisresume(): thisstart(): thisstop(): thisthen(tween: TweenAnimates numeric properties of `target` from their current value to a configured end value over a duration in seconds. Supports easing, delay, repeat (with opt…<object> | TweenAnimates numeric properties of `target` from their current value to a configured end value over a duration in seconds. Supports easing, delay, repeat (with opt…<object>[]): thisupdate(deltaSeconds: number): voidwait(seconds: number): thisyoyo(enabled: boolean): thisprogress: number