fn

onAnimationSettle

v0.0.5

Attaches animation/transition end listeners to an element with fill-mode flash prevention. Returns a cleanup function.

Signature

ts
declare function onAnimationSettle(el: HTMLElement, callbacks: AnimationSettleCallbacks): () => void;

Parameters

ParameterTypeDescription
elHTMLElement
callbacksAnimationSettleCallbacks

Returns

() => void