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)