@ujjwalvivek/tinyts
    Preparing search index...

    Interface TweenConfig

    Configuration for creating a tween animation.

    interface TweenConfig {
        delay?: number;
        duration: number;
        easing?: EasingFn;
        from: Record<string, number>;
        onComplete?: () => void;
        onUpdate?: (values: Record<string, number>) => void;
        to: Record<string, number>;
    }
    Index

    Properties

    delay?: number

    Delay in seconds before the tween starts.

    duration: number

    Duration in seconds.

    easing?: EasingFn

    Easing function, defaults to quadOut.

    from: Record<string, number>

    Starting values keyed by property name.

    onComplete?: () => void

    Called once when the tween completes.

    onUpdate?: (values: Record<string, number>) => void

    Called each frame with interpolated values.

    to: Record<string, number>

    Target values keyed by property name.