MCPcopy
hub / github.com/animatedjs/animated / stopAnimation

Method stopAnimation

src/AnimatedValue.js:144–149  ·  view source on GitHub ↗

* Stops any running animation or tracking. `callback` is invoked with the * final value after stopping the animation, which is useful for updating * state to match the animation position with layout.

(callback?: ?(value: number) => void)

Source from the content-addressed store, hash-verified

142 * state to match the animation position with layout.
143 */
144 stopAnimation(callback?: ?(value: number) => void): void {
145 this.stopTracking();
146 this._animation && this._animation.stop();
147 this._animation = null;
148 callback && callback(this.__getValue());
149 }
150
151 /**
152 * Interpolates the value before updating the property, e.g. mapping 0-1 to

Callers 4

__detachMethod · 0.95
springFunction · 0.45
timingFunction · 0.45
decayFunction · 0.45

Calls 3

stopTrackingMethod · 0.95
__getValueMethod · 0.95
stopMethod · 0.45

Tested by

no test coverage detected