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

Function setAnimationStep

core/src/utils/animation/animation.ts:662–671  ·  view source on GitHub ↗
(step: number)

Source from the content-addressed store, hash-verified

660 };
661
662 const setAnimationStep = (step: number) => {
663 step = Math.min(Math.max(step, 0), 0.9999);
664 if (supportsWebAnimations) {
665 webAnimations.forEach((animation) => {
666 // When creating the animation the delay is guaranteed to be set to a number.
667 animation.currentTime = animation.effect!.getComputedTiming().delay! + getDuration() * step;
668 animation.pause();
669 });
670 }
671 };
672
673 const updateWebAnimation = (step?: number) => {
674 webAnimations.forEach((animation) => {

Callers 4

updateWebAnimationFunction · 0.85
progressStepFunction · 0.85
progressEndFunction · 0.85
resetAnimationFunction · 0.85

Calls 2

getDurationFunction · 0.85
pauseMethod · 0.80

Tested by

no test coverage detected