interface dom.Animation
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.17/lib/index.ts";
const { Animation } = dom;
Properties
effect: AnimationEffect | null
readonly
finished: Promise<Animation>oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null
readonly
playState: AnimationPlayStatereadonly
ready: Promise<Animation>timeline: AnimationTimeline | null
Methods
addEventListener<K extends keyof AnimationEventMap>(): void
type: K,
listener: (this: Animation, ev: AnimationEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof AnimationEventMap>(): void
type: K,
listener: (this: Animation, ev: AnimationEventMap[K]) => any,
options?: boolean | EventListenerOptions,