UI kit reference
motion/layout-animating
import { … } from 'zidane-ui'ui/src/motion/layout-animating.ts
Functions#
beginLayoutAnimationFunction#
Marks a layout animation as started; call the returned function (idempotent) when it ends.
function beginLayoutAnimation(): () => voidReturns
() => voidisLayoutAnimatingFunction#
True while at least one layout animation runs.
function isLayoutAnimating(): booleanReturns
booleanpulseLayoutFunction#
Something moved without animating (an element reparented): followers measure for the next two frames.
function pulseLayout(): voidsubscribeLayoutAnimatingFunction#
Listens for layout animations starting and stopping; returns the unsubscribe.
function subscribeLayoutAnimating(cb: () => void): () => voidParameters
| Name | Type | Description |
|---|---|---|
| cb | () => void | Called whenever the count goes from or to zero; read |
Returns
() => void