Skip to content
Permalink
Browse files

fix(animation): fallback to CSS Animations on older versions of Chrome (

#19288)

fixes #19272
  • Loading branch information...
liamdebeasi committed Sep 10, 2019
1 parent 4e544f1 commit 2d39c07fec660a50c8794391d1e88603c9b67213
Showing with 2 additions and 1 deletion.
  1. +2 −1 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;

/**

0 comments on commit 2d39c07

Please sign in to comment.
You can’t perform that action at this time.