diff --git a/core/src/utils/animation/animation.ts b/core/src/utils/animation/animation.ts index 68ab2c6c6b..dc4c99d499 100644 --- a/core/src/utils/animation/animation.ts +++ b/core/src/utils/animation/animation.ts @@ -42,7 +42,8 @@ export const createAnimation = () => { const _afterAddReadFunctions: any[] = []; const _afterAddWriteFunctions: any[] = []; const webAnimations: any[] = []; - const supportsWebAnimations = (typeof (Element as any) === 'function') && (typeof (Element as any).prototype!.animate === 'function'); + const supportsAnimationEffect = (typeof (AnimationEffect as any) === 'function' || typeof (window as any).AnimationEffect === 'function'); + const supportsWebAnimations = (typeof (Element as any) === 'function') && (typeof (Element as any).prototype!.animate === 'function') && supportsAnimationEffect; const ANIMATION_END_FALLBACK_PADDING_MS = 100; /**