R
fn

dispatchAnimationEvent

v0.0.5tested

Dispatches a non-bubbling custom event on an element for animation lifecycle tracking

Signature

ts
export function dispatchAnimationEvent(el: HTMLElement | undefined, name: AnimationLifecycleEvent): void{ ... }

Parameters

ParameterTypeDescription
elHTMLElement | undefined
nameAnimationLifecycleEvent