interface Animation {
    currentTime: number;
    effect: AnimationEffect;
    finished: Promise<Animation>;
    id: string;
    oncancel: ((this, ev) => any);
    onfinish: ((this, ev) => any);
    onremove: ((this, ev) => any);
    pending: boolean;
    playState: AnimationPlayState;
    playbackRate: number;
    ready: Promise<Animation>;
    replaceState: AnimationReplaceState;
    startTime: number;
    timeline: AnimationTimeline;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    cancel(): void;
    commitStyles(): void;
    dispatchEvent(event): boolean;
    finish(): void;
    pause(): void;
    persist(): void;
    play(): void;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
    reverse(): void;
    updatePlaybackRate(playbackRate): void;
}

Hierarchy

  • EventTarget
    • Animation

Properties

currentTime: number
finished: Promise<Animation>
id: string
oncancel: ((this, ev) => any)

Type declaration

onfinish: ((this, ev) => any)

Type declaration

onremove: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

pending: boolean
playbackRate: number
ready: Promise<Animation>
replaceState: AnimationReplaceState
startTime: number

Methods

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

  • Returns void

  • Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

  • Returns void

  • Parameters

    • playbackRate: number

    Returns void

Generated using TypeDoc