R
fn

onAnimationSettle

v0.0.5tested

Attaches 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

ParameterTypeDescription
elHTMLElement
callbacksAnimationSettleCallbacks

Returns

() => void