MCPcopy
hub / github.com/ampproject/amphtml / add

Method add

src/utils/animation.js:89–97  ·  view source on GitHub ↗

* Adds a segment to the animation. Each segment starts at offset (delay) and * runs for a portion of the overall animation (duration). Note that both * delay and duration and NormTimeDef types which accept values from 0 to 1. * Optionally, the time is pushed through a curve. If curve is not

(delay, transition, duration, opt_curve)

Source from the content-addressed store, hash-verified

87 * @return {!Animation}
88 */
89 add(delay, transition, duration, opt_curve) {
90 this.segments_.push({
91 delay,
92 func: transition,
93 duration,
94 curve: getCurve(opt_curve),
95 });
96 return this;
97 }
98
99 /**
100 * Starts the animation and returns the AnimationPlayer object that can be

Callers 15

animateExpand_Method · 0.95
enter_Method · 0.95
exit_Method · 0.95
setStructFunction · 0.45
createFunction · 0.45
createFunction · 0.45
[memberSelector]Function · 0.45
[destructureSelector]Function · 0.45
codeFunction · 0.45
mergeFilesTxt_Function · 0.45
determineBuildTargetsFunction · 0.45
compileJsFunction · 0.45

Calls 2

getCurveFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected