mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(popover): update animation to better match MD spec (#23541)
This commit is contained in:
@@ -49,6 +49,7 @@ export const mdEnterAnimation = (baseEl: HTMLElement, opts?: any): Animation =>
|
||||
|
||||
wrapperAnimation
|
||||
.addElement(root.querySelector('.popover-wrapper')!)
|
||||
.duration(150)
|
||||
.fromTo('opacity', 0.01, 1);
|
||||
|
||||
contentAnimation
|
||||
@@ -63,7 +64,7 @@ export const mdEnterAnimation = (baseEl: HTMLElement, opts?: any): Animation =>
|
||||
contentEl.style.setProperty('bottom', `${bottom}px`);
|
||||
}
|
||||
})
|
||||
.fromTo('transform', 'scale(0.001)', 'scale(1)');
|
||||
.fromTo('transform', 'scale(0.8)', 'scale(1)');
|
||||
|
||||
viewportAnimation
|
||||
.addElement(root.querySelector('.popover-viewport')!)
|
||||
|
||||
Reference in New Issue
Block a user