MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / stop

Function stop

core/src/utils/animation/animation.ts:901–915  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

899 * clear the onFinish callbacks.
900 */
901 const stop = () => {
902 childAnimations.forEach((animation) => {
903 animation.stop();
904 });
905
906 if (initialized) {
907 cleanUpElements();
908 initialized = false;
909 }
910
911 resetFlags();
912
913 onStopOneTimeCallbacks.forEach((onStopCallback) => onStopCallback.c(0, ani));
914 onStopOneTimeCallbacks.length = 0;
915 };
916
917 const from = (property: string, value: string | number) => {
918 const firstFrame = _keyframes[0] as AnimationKeyFrameEdge | undefined;

Callers

nothing calls this directly

Calls 3

cleanUpElementsFunction · 0.85
resetFlagsFunction · 0.85
stopMethod · 0.80

Tested by

no test coverage detected