Animation
interface Animation extends EventTarget {
currentTime: CSSNumberish | null;
effect: AnimationEffect | null;
readonly finished: Promise<Animation>;
id: string;
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
readonly pending: boolean;
playbackRate: number;
readonly playState: AnimationPlayState;
readonly ready: Promise<Animation>;
readonly replaceState: AnimationReplaceState;
startTime: CSSNumberish | null;
timeline: AnimationTimeline | null;
addEventListener<K extends keyof AnimationEventMap>(
type: K,
listener: (this: Animation, ev: AnimationEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;cancel(): void;
commitStyles(): void;
finish(): void;
pause(): void;
persist(): void;
play(): void;
removeEventListener<K extends keyof AnimationEventMap>(
type: K,
listener: (this: Animation, ev: AnimationEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;reverse(): void;
updatePlaybackRate(playbackRate: number): void;
}var Animation: {
prototype: Animation;
new (effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
};§Extends
§Properties
§
currentTime: CSSNumberish | null
[src]§
effect: AnimationEffect | null
[src]§
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null
[src]§
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null
[src]§
readonly playState: AnimationPlayState
[src]§
readonly replaceState: AnimationReplaceState
[src]§
startTime: CSSNumberish | null
[src]§
timeline: AnimationTimeline | null
[src]§Methods
§
addEventListener<K extends keyof AnimationEventMap>(
[src]type: K,
listener: (this: Animation, ev: AnimationEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof AnimationEventMap>(
[src]type: K,
listener: (this: Animation, ev: AnimationEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void