MCPcopy
hub / github.com/pmndrs/react-spring / isAnimating

Function isAnimating

packages/core/src/SpringPhase.ts:12–12  ·  view source on GitHub ↗
(target: any)

Source from the content-addressed store, hash-verified

10
11/** Returns true if the `target` is animating (even if paused). */
12export const isAnimating = (target: any) => (target[$P] & IS_ANIMATING) > 0
13
14/** Returns true if the `target` is paused (even if idle). */
15export const isPaused = (target: any) => (target[$P] & IS_PAUSED) > 0

Callers 7

idleMethod · 0.90
isAnimatingMethod · 0.90
finishMethod · 0.90
_updateMethod · 0.90
_mergeMethod · 0.90
_startMethod · 0.90
_stopMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…