Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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;
onremove: ((this: Animation, ev: Event) => 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,
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,
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]
§
readonly finished: Promise<Animation>
[src]
§
id: string
[src]
§
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null
[src]
§
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null
[src]
§
onremove: ((this: Animation, ev: Event) => any) | null
[src]
§
readonly pending: boolean
[src]
§
playbackRate: number
[src]
§
readonly playState: AnimationPlayState
[src]
§
readonly ready: Promise<Animation>
[src]
§
readonly replaceState: AnimationReplaceState
[src]
§
startTime: CSSNumberish | null
[src]
§
timeline: AnimationTimeline | null
[src]

§Methods

§
addEventListener<K extends keyof AnimationEventMap>(
type: K,
listener: (this: Animation, ev: AnimationEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
cancel(): void
[src]
§
commitStyles(): void
[src]
§
finish(): void
[src]
§
pause(): void
[src]
§
persist(): void
[src]
§
play(): void
[src]
§
removeEventListener<K extends keyof AnimationEventMap>(
type: K,
listener: (this: Animation, ev: AnimationEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
reverse(): void
[src]
§
updatePlaybackRate(playbackRate: number): void
[src]