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

Function pauseAnimation

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

Source from the content-addressed store, hash-verified

772 };
773
774 const pauseAnimation = () => {
775 if (initialized) {
776 if (supportsWebAnimations) {
777 webAnimations.forEach((animation) => {
778 animation.pause();
779 });
780 } else {
781 elements.forEach((element) => {
782 setStyleProperty(element, 'animation-play-state', 'paused');
783 });
784 }
785
786 paused = true;
787 }
788 };
789
790 const pause = () => {
791 childAnimations.forEach((animation) => {

Callers 2

progressStartFunction · 0.85
pauseFunction · 0.85

Calls 2

setStylePropertyFunction · 0.90
pauseMethod · 0.80

Tested by

no test coverage detected