()
| 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(); |
no test coverage detected