如何在ng-view上应用动画过渡

时间:2014-04-05 17:49:59

标签: angularjs dart angular-dart ng-animate

我正在尝试使用有角度的飞镖在ng-view中应用转换。

HTML:

<ng-view class="main-animation"></ng-view>

CSS:

.main-animation.ng-enter {
    -webkit-transition: all 3000ms;
    -moz-transition: all 3000ms;
    -ms-transition: all 3000ms;
    -o-transition: all 3000ms;
    transition: all 3000ms;
    opacity: 0;
}
.main-animation.ng-enter.ng-enter-active {
    opacity: 1;
}

动画不起作用,ng-enterng-enter-active类没有出现,即使我模拟了放置的类。

<ng-view class="main-animation ng-enter"><ngview> 

内容仍在渲染中。角镖中的ng-view是否支持动画?

0 个答案:

没有答案