Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS ngAnimate ngView smooth fade out/in animation

i like to have a nice transition while i change the content of my ngView. The user can always change the active view faster than the animation. Is there a way to always get an smooth fade out/in animation. The only way that is visible to seems to ignore fadeout/leave.

Plunker Link

like image 324
MR.ABC Avatar asked Sep 25 '13 09:09

MR.ABC


1 Answers

Try this http://plnkr.co/edit/NO0Xqh?p=preview.

With JavaScript controlled animation, it will make sure when user clicks faster than the animation, the value animation stop in the middle and reverse back to initial states.

like image 155
Daiwei Avatar answered Oct 20 '22 02:10

Daiwei