diff --git a/src/internal/animate.ts b/src/internal/animate.ts index bc86c5750c..721cddf3df 100644 --- a/src/internal/animate.ts +++ b/src/internal/animate.ts @@ -45,11 +45,8 @@ export function stopAnimations(el: HTMLElement) { return Promise.all( el.getAnimations().map(animation => { return new Promise(resolve => { - const handleAnimationEvent = requestAnimationFrame(resolve); - - animation.addEventListener('cancel', () => handleAnimationEvent, { once: true }); - animation.addEventListener('finish', () => handleAnimationEvent, { once: true }); animation.cancel(); + requestAnimationFrame(resolve); }); }) );