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

    Type Alias StaggerConfig

    type StaggerConfig = {
        ease?: string | Function;
        from?: string | number;
        grid?: number[];
        start?: number;
    }
    Index

    Properties

    Properties

    ease?: string | Function

    An ease to apply across the staggered values. Can either be a string, such as 'sine.inout', or a function.

    from?: string | number

    The index to start the stagger from. Can be the strings first, last or center, or an integer representing the stagger position.

    grid?: number[]

    Set the stagger to run across a grid by providing an array where element 0 is the width of the grid and element 1 is the height. Combine with the 'from' property to control direction.

    start?: number

    The value to start the stagger from. Can be used as a way to offset the stagger while still using a range for the value.