MCPcopy Index your code
hub / github.com/ampproject/amphtml / createAnimTask

Method createAnimTask

src/service/vsync-impl.js:320–326  ·  view source on GitHub ↗

* Creates an animation vsync task. This operation can only run when * animations are allowed. Otherwise, this closure returns `false` and exits. * @param {!Node} contextNode * @param {!VsyncTaskSpecDef} task * @return {function(!VsyncStateDef=):boolean}

(contextNode, task)

Source from the content-addressed store, hash-verified

318 * @return {function(!VsyncStateDef=):boolean}
319 */
320 createAnimTask(contextNode, task) {
321 return /** @type {function(!VsyncStateDef=):boolean} */ (
322 (opt_state) => {
323 return this.runAnim(contextNode, task, opt_state);
324 }
325 );
326 }
327
328 /**
329 * Runs the series of mutates until the mutator returns a false value.

Callers 3

runAnimMutateSeriesMethod · 0.95
test-vsync.jsFile · 0.80
constructorMethod · 0.80

Calls 1

runAnimMethod · 0.95

Tested by

no test coverage detected