Reset the animation.
()
| 237 | |
| 238 | /** Reset the animation. */ |
| 239 | reset() { |
| 240 | this.pause(); |
| 241 | this.currentTime = 0; |
| 242 | this._progress.set(0); |
| 243 | |
| 244 | for (const [selector, styles] of this.activeStyles) { |
| 245 | for (const style of Object.keys(styles)) { |
| 246 | this.removeStyle(selector, style); |
| 247 | } |
| 248 | this.activeStyles.delete(selector); |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | /** Alias for `reset`. */ |
| 253 | stop() { |