diff --git a/core/src/utils/animation/animation.ts b/core/src/utils/animation/animation.ts index 4e9e721d9e..b761e10c75 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 { + const elementsArray = elements.slice(); + raf(() => { - elements.forEach(element => { + elementsArray.forEach(element => { removeStyleProperty(element, 'animation-name'); removeStyleProperty(element, 'animation-duration'); removeStyleProperty(element, 'animation-timing-function');