MCPcopy Index your code
hub / github.com/angular/angular / reset

Method reset

adev/src/app/features/home/animation/animation.ts:239–250  ·  view source on GitHub ↗

Reset the animation.

()

Source from the content-addressed store, hash-verified

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() {

Callers 4

defineMethod · 0.95
playMethod · 0.95
stopMethod · 0.95
disposeMethod · 0.95

Calls 5

pauseMethod · 0.95
removeStyleMethod · 0.95
setMethod · 0.65
keysMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected