From bdb95b7b6dd798cbc6d1786ae54fa95ac1dfd096 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 30 Jun 2021 14:27:02 -0400 Subject: [PATCH] fix(popover): update animation to better match MD spec (#23541) --- core/src/components/popover/animations/md.enter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/components/popover/animations/md.enter.ts b/core/src/components/popover/animations/md.enter.ts index db76390bcf..985d2af030 100644 --- a/core/src/components/popover/animations/md.enter.ts +++ b/core/src/components/popover/animations/md.enter.ts @@ -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')!)