interface Animation
implements EventTarget
import { type Animation } from "https://deno.land/x/yxz@0.32.0/typing/lib.dom.ts";
Properties
currentTime: CSSNumberish | null
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>readonly
replaceState: AnimationReplaceStatestartTime: CSSNumberish | null
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,