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

Function hasAnimated

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

Source from the content-addressed store, hash-verified

7
8/** Returns true if the `target` has ever animated. */
9export const hasAnimated = (target: any) => (target[$P] & HAS_ANIMATED) > 0
10
11/** Returns true if the `target` is animating (even if paused). */
12export const isAnimating = (target: any) => (target[$P] & IS_ANIMATING) > 0

Callers 3

hasAnimatedMethod · 0.90
_prepareNodeMethod · 0.90
_mergeMethod · 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…