我在ng输入和离开时遇到困难。如果我在我的 css 文件中声明为 .my-animation{...} 的 ng-viewdiv 上有一个 css 类 my-animation ,则动画有效。但是,当我将其重命名为.my-animation.ng-enter{...}时,它停止工作。知道可能出了什么问题吗?我也一直在从教程/示例中复制粘贴工作 css 类,但没有任何运气。
<div ng-view ng-cloak class=" animated slideInLeftCustom"></div>
工程:
.slideInLeftCustom {
-webkit-animation-name: slideInLeft;
-moz-animation-name: slideInLeft;
-o-animation-name: slideInLeft;
animation-name: slideInLeft;
}
不起作用:
.slideInLeftCustom.ng-enter {
-webkit-animation-name: slideInLeft;
-moz-animation-name: slideInLeft;
-o-animation-name: slideInLeft;
animation-name: slideInLeft;
}
我正在使用AngularJS v1.2.0,截至目前的最新稳定下载。
干杯
我更新到 v 1.2.1 的动画、路线和角度,它现在似乎可以工作了。
我更新到 v 1.2.1 用于动画、路线和角度,它现在似乎可以工作了。
我从这里得到了文件:http://code.angularjs.org/