fn
dispatchAnimationEvent
v0.0.5testedDispatches a non-bubbling custom event on an element for animation lifecycle tracking
Signature
ts
export function dispatchAnimationEvent(el: HTMLElement | undefined, name: AnimationLifecycleEvent): void{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
el | HTMLElement | undefined | — |
name | AnimationLifecycleEvent | — |