我想要的高度動畫,ngAnimate ngShow身高過渡
在我的HTML我得到<div ng-show="showdiv==true" class="default" ng-animate={show: 'rollup'}>
This is an error message that can have hell lots of content
</div>
<button ng-click="showdiv=true">Toggle</button>
而且我的CSS是如下
.rollup{
max-height: 200px;
overflow: hidden;
-webkit-transition: max-height 5s;
-moz-transition: max-height 5s;
transition: max-height 5s;
}
這似乎是一個新手的錯誤
但是我對css太可怕了,所以我可以做什麼指針?
爲什麼你不解釋什麼是行不通的? – connexo
從某種意義上說,它可能並不清楚,它不會從0px到200px的高度 – user3052526
那麼它會做什麼呢? – connexo