mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 07:41:51 +08:00
fix(modal): leave animation transitions modal completely out of viewport on ipad (#20702)
fixes #20697
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user