We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e544f1 commit 2d39c07Copy full SHA for 2d39c07
core/src/utils/animation/animation.ts
@@ -42,7 +42,8 @@ export const createAnimation = () => {
42
const _afterAddReadFunctions: any[] = [];
43
const _afterAddWriteFunctions: any[] = [];
44
const webAnimations: any[] = [];
45
- 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');
46
+ const supportsWebAnimations = (typeof (Element as any) === 'function') && (typeof (Element as any).prototype!.animate === 'function') && supportsAnimationEffect;
47
const ANIMATION_END_FALLBACK_PADDING_MS = 100;
48
49
/**
0 commit comments