Freeze the active animation in time
(keys?: OneOrMore<string>)
| 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>) { |