Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EventTarget
    • Animation

Index

Properties

currentTime: null | number
effect: null | internal.AnimationEffect
finished: Promise<internal.Animation>
id: string
oncancel: null | ((this: internal.Animation, ev: internal.AnimationPlaybackEvent) => any)
onfinish: null | ((this: internal.Animation, ev: internal.AnimationPlaybackEvent) => any)
onremove: null | ((this: internal.Animation, ev: Event) => any)
pending: boolean
playbackRate: number
ready: Promise<internal.Animation>
replaceState: AnimationReplaceState
startTime: null | number
timeline: null | internal.AnimationTimeline

Methods

  • addEventListener<K>(type: K, listener: ((this: internal.Animation, ev: AnimationEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • Type Parameters

    Parameters

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • cancel(): void
  • Returns void

  • commitStyles(): void
  • Returns void

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • finish(): void
  • Returns void

  • pause(): void
  • Returns void

  • persist(): void
  • Returns void

  • play(): void
  • Returns void

  • removeEventListener<K>(type: K, listener: ((this: internal.Animation, ev: AnimationEventMap[K]) => any), options?: boolean | EventListenerOptions): void
  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void
  • Type Parameters

    Parameters

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

  • reverse(): void
  • Returns void

  • updatePlaybackRate(playbackRate: number): void
  • Parameters

    • playbackRate: number

    Returns void

Generated using TypeDoc