fn
onAnimationSettle
v0.0.5testedAttaches animation/transition end listeners to an element with fill-mode flash prevention. Returns a cleanup function.
Signature
ts
export function onAnimationSettle(el: HTMLElement, callbacks: AnimationSettleCallbacks): () => void{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
el | HTMLElement | — |
callbacks | AnimationSettleCallbacks | — |
Returns
() => void