phaser - v4.0.0-rc.4
    Preparing search index...
    type MemberAnimation = {
        amplitude?: number;
        base?: number;
        delay?: number;
        duration?: number;
        ease?: number | string;
        gravityFactor?: number;
        loop?: boolean;
        velocity?: number;
        yoyo?: boolean;
    }
    Index

    Properties

    amplitude?: number

    The amplitude of the animation.

    base?: number

    The base value of the animation.

    delay?: number

    The delay of the animation, in milliseconds.

    duration?: number

    The duration of the animation, in milliseconds. Must be non-negative.

    ease?: number | string

    The ease value of the animation. This must be a key or value of SpriteGPULayer.EASE, e.g. 'Linear', 'Quad.easeIn', etc.

    gravityFactor?: number

    The gravity factor of the animation. This is used instead of amplitude if the ease is 'Gravity'.

    loop?: boolean

    Whether the animation loops from 0-1 (optionally using yoyo from 0-1-1), or continues beyond 1. Non-looping animations can be useful for one-off particle effects.

    velocity?: number

    The velocity of the animation. Must be an integer. This is used instead of amplitude if the ease is 'Gravity'.

    yoyo?: boolean

    Whether the animation runs backwards when it completes. If false, it starts over from the beginning.