From 22d52568100d8096ee36e3a61a19614f0d63d45f Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Fri, 6 Mar 2020 10:12:21 -0500 Subject: [PATCH] fix(modal): leave animation transitions modal completely out of viewport on ipad (#20702) fixes #20697 --- core/src/components/modal/animations/ios.enter.ts | 2 +- core/src/components/modal/animations/ios.leave.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/components/modal/animations/ios.enter.ts b/core/src/components/modal/animations/ios.enter.ts index 2d6c78b5b42..608fb04b319 100644 --- a/core/src/components/modal/animations/ios.enter.ts +++ b/core/src/components/modal/animations/ios.enter.ts @@ -21,7 +21,7 @@ export const iosEnterAnimation = ( const wrapperAnimation = createAnimation() .addElement(baseEl.querySelector('.modal-wrapper')!) .beforeStyles({ 'opacity': 1 }) - .fromTo('transform', 'translateY(100%)', 'translateY(0%)'); + .fromTo('transform', 'translateY(100vh)', 'translateY(0vh)'); const baseAnimation = createAnimation() .addElement(baseEl) diff --git a/core/src/components/modal/animations/ios.leave.ts b/core/src/components/modal/animations/ios.leave.ts index 09056d3d03a..dc220e81658 100644 --- a/core/src/components/modal/animations/ios.leave.ts +++ b/core/src/components/modal/animations/ios.leave.ts @@ -18,7 +18,7 @@ export const iosLeaveAnimation = ( const wrapperAnimation = createAnimation() .addElement(baseEl.querySelector('.modal-wrapper')!) .beforeStyles({ 'opacity': 1 }) - .fromTo('transform', 'translateY(0%)', 'translateY(100%)'); + .fromTo('transform', 'translateY(0vh)', 'translateY(100vh)'); const baseAnimation = createAnimation() .addElement(baseEl)