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

Method pause

packages/core/src/Controller.ts:234–242  ·  view source on GitHub ↗

Freeze the active animation in time

(keys?: OneOrMore<string>)

Source from the content-addressed store, hash-verified

232
233 /** Freeze the active animation in time */
234 pause(keys?: OneOrMore<string>) {
235 if (is.und(keys)) {
236 this.start({ pause: true })
237 } else {
238 const springs = this.springs as Lookup<SpringValue>
239 each(toArray(keys) as string[], key => springs[key].pause())
240 }
241 return this
242 }
243
244 /** Resume the animation if paused. */
245 resume(keys?: OneOrMore<string>) {

Callers 1

getPausedLoopFunction · 0.95

Calls 4

startMethod · 0.95
eachFunction · 0.90
toArrayFunction · 0.90
pauseMethod · 0.65

Tested by 1

getPausedLoopFunction · 0.76