我想要的高度动画,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