weasel API - v0.8.0
    Preparing search index...

    Interface TweenLoopOptions<T>

    interface TweenLoopOptions<T> {
        cancelKey?: string;
        count?: number;
        direction?: "restart" | "reverse" | "alternate";
        easing?: EasingFn;
        from: T;
        interpolate?: Interpolate<T>;
        ms: number;
        onDone?: () => void;
        onTick: (value: T) => void;
        to: T;
    }

    Type Parameters

    • T
    Index

    Properties

    cancelKey?: string
    count?: number
    direction?: "restart" | "reverse" | "alternate"

    restart (default): from→to every iteration. reverse: to→from every iteration. alternate: even iterations from→to, odd iterations to→from.

    easing?: EasingFn
    from: T
    interpolate?: Interpolate<T>
    ms: number
    onDone?: () => void
    onTick: (value: T) => void
    to: T