MCPcopy Create free account
hub / github.com/ampproject/amphtml / halt

Method halt

src/utils/animation.js:232–234  ·  view source on GitHub ↗

* Halts the animation. Depending on the opt_dir value, the following actions * can be performed: * 0: No action. The state will be as at the moment of halting (default) * 1: Final state. Transitionable will be set to state = 1. * -1: Reset state. Transitionable will be reset to state = 0

(opt_dir)

Source from the content-addressed store, hash-verified

230 * @param {number=} opt_dir
231 */
232 halt(opt_dir) {
233 this.complete_(/* success */ false, /* dir */ opt_dir || 0);
234 }
235
236 /**
237 * @param {boolean} success

Callers

nothing calls this directly

Calls 1

complete_Method · 0.95

Tested by

no test coverage detected