AngularJS - Animate ng-view transitions

后端 未结 5 1648
离开以前
离开以前 2020-12-04 07:25

I have 2 html pages, welcome.html and login.html both of which are \"inserted\" into index.html dependending on the URL via an

5条回答
  •  伪装坚强ぢ
    2020-12-04 08:16

    Angularjs 1.1.4 has now introduced the ng-animate directive to help animating different elements, in particular ng-view.

    You can also watch the video about this new featue

    UPDATE as of angularjs 1.2, the way animations work has changed drastically, most of it is now controlled with CSS, without having to setup javascript callbacks, etc.. You can check the updated tutorial on Year Of Moo. @dfsq pointed out in the comments a nice set of examples.

提交回复
热议问题