API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTween
Animates numeric properties of `target` from their current value to a configured end value over a duration in seconds. Supports easing, delay, repeat (with optional yoyo), chaining, and lifecycle callbacks (Tween.onStart, Tween.onUpdate, Tween.onComplete, Tween.onRepeat). Tweens are typically created via TweenSystem.create, which binds them to that system; Tween.start then enters them into its update loop so they advance once per frame. Stand-alone usage is supported by calling Tween.update manually with a frame delta. Start values are captured lazily on the first update after Tween.start, so target properties may be mutated between configuration and start without affecting the captured baseline. Only number-typed properties on `target` are interpolated; non-number properties listed in Tween.to emit a console warning and are skipped.
import { Tween } from '@codexo/exojs'Animates numeric properties of `target` from their current value to a configured end value over a duration in seconds. Supports easing, delay, repeat (with optional yoyo), chaining, and lifecycle callbacks (Tween.onStart, Tween.onUpdate, Tween.onComplete, Tween.onRepeat).
Tweens are typically created via TweenSystem.create, which binds them to that system; Tween.start then enters them into its update loop so they advance once per frame. Stand-alone usage is supported by calling Tween.update manually with a frame delta.
Start values are captured lazily on the first update after Tween.start, so target properties may be mutated between configuration and start without affecting the captured baseline.
Only number-typed properties on `target` are interpolated; non-number properties listed in Tween.to emit a console warning and are skipped.
new(target: T): Tween<T>chain(next: Tween): Tweendelay(seconds: number): thiseasing(easingFunction: EasingFunction): thispause(): thisrepeat(count: number): thisresume(): thisstart(): thisstop(): thisto(properties: Partial<Record<NumericKeys<T>, number>>, duration: number): thisupdate(deltaSeconds: number): voidyoyo(enabled: boolean): thisprogress: numbertarget: T