mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(animation): fallback to CSS Animations on older versions of Chrome (#19288)
fixes #19272
This commit is contained in:
@ -42,7 +42,8 @@ export const createAnimation = () => {
|
|||||||
const _afterAddReadFunctions: any[] = [];
|
const _afterAddReadFunctions: any[] = [];
|
||||||
const _afterAddWriteFunctions: any[] = [];
|
const _afterAddWriteFunctions: any[] = [];
|
||||||
const webAnimations: 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;
|
const ANIMATION_END_FALLBACK_PADDING_MS = 100;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user