我最近在幻灯片内出动画中尝试了Angular的动画。我在使opening
时组件从底部滑入时遇到问题。然后在closing
时向下滑动。
我有一个具有当前滑动动画的示例。向下滑动from the top and back up
。关闭时如何达到slide up from button, and slide back down to the button
?
https://stackblitz.com/edit/slide-in-out-qn
答案 0 :(得分:0)
好的,这是因为您正在使用max-height
。
在您的“ animation.ts”中将每个max-height
更改为height
,它将起作用