interface Animation
implements EventTarget
import { type Animation } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";
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,