interface AnimationPlaybackControls {
    attachTimeline?: ((timeline) => VoidFunction);
    cancel: (() => void);
    complete: (() => void);
    duration: number;
    pause: (() => void);
    play: (() => void);
    speed: number;
    state?: AnimationPlayState;
    stop: (() => void);
    then: ((onResolve, onReject?) => Promise<void>);
    time: number;
}

Properties

attachTimeline?: ((timeline) => VoidFunction)

Type declaration

    • (timeline): VoidFunction
    • Parameters

      • timeline: ProgressTimeline

      Returns VoidFunction

cancel: (() => void)

Type declaration

    • (): void
    • Returns void

complete: (() => void)

Type declaration

    • (): void
    • Returns void

duration: number
pause: (() => void)

Type declaration

    • (): void
    • Returns void

play: (() => void)

Type declaration

    • (): void
    • Returns void

speed: number
state?: AnimationPlayState
stop: (() => void)

Type declaration

    • (): void
    • Returns void

then: ((onResolve, onReject?) => Promise<void>)

Type declaration

    • (onResolve, onReject?): Promise<void>
    • Parameters

      • onResolve: VoidFunction
      • Optional onReject: VoidFunction

      Returns Promise<void>

time: number

Generated using TypeDoc