角动画使元素从底部向上滑动,而不是从顶部向下滑动

时间:2018-07-05 13:35:48

标签: angular angular-animations

我最近在幻灯片内出动画中尝试了Angular的动画。我在使opening时组件从底部滑入时遇到问题。然后在closing时向下滑动。

我有一个具有当前滑动动画的示例。向下滑动from the top and back up。关闭时如何达到slide up from button, and slide back down to the buttonhttps://stackblitz.com/edit/slide-in-out-qn

1 个答案:

答案 0 :(得分:0)

好的,这是因为您正在使用max-height

在您的“ animation.ts”中将每个max-height更改为height,它将起作用

相关问题