Skip to content

Commit

Permalink
fix(popover): update animation to better match MD spec (#23541)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi authored Jun 30, 2021
1 parent b93eeea commit bdb95b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/components/popover/animations/md.enter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')!)
Expand Down

0 comments on commit bdb95b7

Please sign in to comment.