interface CanvasAnimationOptions {
    context: DisplayObject;
    name: string | symbol;
    duration: number;
    priority: number;
    easing: string | Function;
    ontick: ((arg0, arg1) => any);
    wait: Promise<any>;
}

Properties

context: DisplayObject

A DisplayObject which defines context to the PIXI.Ticker function

name: string | symbol

A unique name which can be used to reference the in-progress animation

duration: number

A duration in milliseconds over which the animation should occur

priority: number

A priority in PIXI.UPDATE_PRIORITY which defines when the animation should be evaluated related to others

easing: string | Function

An easing function used to translate animation time or the string name of a static member of the CanvasAnimation class

ontick: ((arg0, arg1) => any)

A callback function which fires after every frame

Type declaration

wait: Promise<any>

The animation isn't started until this promise resolves