基本上我想滑出一个视图并滑入一个新视图,但是“离开事件”根本没有发生,旧视图消失(在离开效果之前)并且新视图带有过渡效果。
文件 = index.html
<!--Placeholder for Views-->
<div id="main" ng-view="" class="slide-animation">
</div>
文件 = app.css
/* Animations */
.slide-animation.ng-enter, .slide-animation.ng-leave {
transition: 0.5s cubic-bezier(0.420, 0.000, 1.000, 1.000) all;
}
.slide-animation.ng-enter {
left: 100%;
}
.slide-animation.ng-enter.ng-enter-active {
left: 0;
}
.slide-animation.ng-leave {
left: 0;
}
.slide-animation.ng-leave.ng-leave-active {
left: -100%;
}
任何帮助表示赞赏,谢谢。