meo-canvas - v9.0.1
    Preparing search index...

    Interface TrackConfig<T>

    A reusable animation: what to move between, when, and how.

    interface TrackConfig<T extends Animatable> {
        delay?: number;
        duration?: number;
        ease?: Easing;
        from: T;
        spring?: SpringConfig;
        stagger?: number;
        to: T;
    }

    Type Parameters

    Index
    delay?: number

    Seconds to wait before starting.

    0
    
    duration?: number

    Seconds the motion lasts. Required unless spring supplies one.

    ease?: Easing

    Easing curve, by name or function. Mutually exclusive with spring.

    linear
    
    from: T

    Value before the track starts.

    spring?: SpringConfig

    Spring physics instead of an easing. Supplies its own duration.

    stagger?: number

    Extra delay per item index, for staggering a row of elements.

    0
    
    to: T

    Value once it has finished.