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

Function initializeWebAnimation

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

Source from the content-addressed store, hash-verified

624 };
625
626 const initializeWebAnimation = () => {
627 elements.forEach((element) => {
628 const animation = element.animate(_keyframes, {
629 id,
630 delay: getDelay(),
631 duration: getDuration(),
632 easing: getEasing(),
633 iterations: getIterations(),
634 fill: getFill(),
635 direction: getDirection(),
636 });
637
638 animation.pause();
639
640 webAnimations.push(animation);
641 });
642
643 if (webAnimations.length > 0) {
644 webAnimations[0].onfinish = () => {
645 animationFinish();
646 };
647 }
648 };
649
650 const initializeAnimation = () => {
651 beforeAnimation();

Callers 1

initializeAnimationFunction · 0.85

Calls 9

getDelayFunction · 0.85
getDurationFunction · 0.85
getEasingFunction · 0.85
getIterationsFunction · 0.85
getFillFunction · 0.85
animationFinishFunction · 0.85
pauseMethod · 0.80
getDirectionFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected