diff --git a/core/src/utils/animation/animation.ts b/core/src/utils/animation/animation.ts index 76436c5a8a..2de2d1404c 100644 --- a/core/src/utils/animation/animation.ts +++ b/core/src/utils/animation/animation.ts @@ -128,8 +128,10 @@ export const createAnimation = (): Animation => { webAnimations.length = 0; } else { - elements.forEach(element => { - raf(() => { + const elementsArray = elements.slice(); + + raf(() => { + elementsArray.forEach(element => { removeStyleProperty(element, 'animation-name'); removeStyleProperty(element, 'animation-duration'); removeStyleProperty(element, 'animation-timing-function');