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

Method resume

packages/core/src/Controller.ts:245–253  ·  view source on GitHub ↗

Resume the animation if paused.

(keys?: OneOrMore<string>)

Source from the content-addressed store, hash-verified

243
244 /** Resume the animation if paused. */
245 resume(keys?: OneOrMore<string>) {
246 if (is.und(keys)) {
247 this.start({ pause: false })
248 } else {
249 const springs = this.springs as Lookup<SpringValue>
250 each(toArray(keys) as string[], key => springs[key].resume())
251 }
252 return this
253 }
254
255 /** Call a function once per spring value */
256 each(iterator: (spring: SpringValue, key: string) => void) {

Callers

nothing calls this directly

Calls 4

startMethod · 0.95
eachFunction · 0.90
toArrayFunction · 0.90
resumeMethod · 0.65

Tested by

no test coverage detected