phaser - v4.0.0-rc.4
    Preparing search index...

    Type Alias TweenConfigDefaults

    type TweenConfigDefaults = {
        delay?: number;
        duration?: number;
        ease?: string;
        easeParams?: any[];
        flipX?: boolean;
        flipY?: boolean;
        hold?: number;
        interpolation?: Function;
        persist?: boolean;
        repeat?: number;
        repeatDelay?: number;
        targets: object | object[];
        yoyo?: boolean;
    }
    Index

    Properties

    delay?: number

    The number of milliseconds to delay before the tween will start.

    duration?: number

    The duration of the tween in milliseconds.

    ease?: string

    The easing equation to use for the tween.

    easeParams?: any[]

    Optional easing parameters.

    flipX?: boolean

    Horizontally flip the target of the Tween when it completes (before it yoyos, if set to do so). Only works for targets that support the flipX property.

    flipY?: boolean

    Vertically flip the target of the Tween when it completes (before it yoyos, if set to do so). Only works for targets that support the flipY property.

    hold?: number

    The number of milliseconds to hold the tween for before yoyo'ing.

    interpolation?: Function

    The interpolation function to use for array-based tween values.

    persist?: boolean

    Retain the tween within the Tween Manager, even after playback completes?

    repeat?: number

    The number of times to repeat the tween.

    repeatDelay?: number

    The number of milliseconds to pause before a tween will repeat.

    targets: object | object[]

    The object, or an array of objects, to run the tween on.

    yoyo?: boolean

    Should the tween complete, then reverse the values incrementally to get back to the starting tween values? The reverse tweening will also take duration milliseconds to complete.