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

Method start

src/utils/animation.js:106–115  ·  view source on GitHub ↗

* Starts the animation and returns the AnimationPlayer object that can be * used to monitor and control the animation. * * @param {!TimestampDef} duration Absolute time in milliseconds. * @return {!AnimationPlayer}

(duration)

Source from the content-addressed store, hash-verified

104 * @return {!AnimationPlayer}
105 */
106 start(duration) {
107 const player = new AnimationPlayer(
108 this.vsync_,
109 this.contextNode_,
110 this.segments_,
111 this.curve_,
112 duration
113 );
114 return player;
115 }
116}
117
118/**

Callers 5

animateExpand_Method · 0.95
enter_Method · 0.95
exit_Method · 0.95
animateMethod · 0.45
collectPropsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected