【发布时间】:2014-11-18 18:04:49
【问题描述】:
我的问题已经说明了,因此这里是带有代码的 plunker:
http://plnkr.co/edit/p8LGG7STxjd8gFr2OJhy?p=preview
html 投资回报率
<div class="check-element animate-show" ng-show="checked">
<span class="glyphicon glyphicon-thumbs-up"></span> I show up when your checkbox is checked.
</div>
还有一个 css
.animate-show {
-webkit-transition:all linear 0.5s;
transition:all linear 0.5s;
line-height:20px;
opacity:1;
padding:10px;
border:1px solid black;
background:white;
}
.animate-show.ng-hide {
line-height:0;
opacity:0;
padding:0 10px;
}
如您所见,我只是使用了angularJs ngAnimate doc for ngShow 并使用 angular 和 ngAnimate 版本更改了 plunker 以匹配我所测试的版本。
谁有这方面的建议?
提前致谢。
【问题讨论】:
标签: javascript angularjs ng-animate