(step: number)
| 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) => { |
no test coverage detected