We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75069bc commit ced4abcCopy full SHA for ced4abc
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