sesaparcours
    Preparing search index...

    <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

    1.8

    interface Tween<TElement> {
        easing: string;
        elem: TElement;
        end: number;
        now: number;
        options: EffectsOptions<TElement>;
        pos?: number;
        prop: string;
        start: number;
        unit: string;
        cur(): any;
        run(progress: number): this;
    }

    Type Parameters

    • TElement
    Index

    Properties

    easing: string

    The easing used

    <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

    1.8

    elem: TElement

    The element being animated

    <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

    1.8

    end: number

    The ending value of the tween

    <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

    1.8

    now: number

    The current value of the tween

    <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

    1.8

    A reference to the animation options

    <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

    1.8

    pos?: number
    prop: string

    The property being animated

    <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

    1.8

    start: number

    The starting value of the tween

    <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

    1.8

    unit: string

    The CSS unit for the tween

    <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

    1.8

    Methods

    • Reads the current value for property from the element

      Returns any

      <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

      1.8

    • Updates the value for the property on the animated elemd.

      Parameters

      • progress: number

        A number from 0 to 1.

      Returns this

      <a href="https://gist.github.com/gnarf/54829d408993526fe475#tweens">https://gist.github.com/gnarf/54829d408993526fe475#tweens</a>

      1.8