Here is a example using emberjs router http://jsbin.com/agameq/edit.
Now I wanna have some showup animation, like fadeIn or fadeOut, when route changed. what should I do?
Here is a example using emberjs router http://jsbin.com/agameq/edit . Now I wanna have some
Share
Every
Viewin ember has a method nameddidInsertElement:All ember views also have a
$which is a reference to jQuery, so you can wrap some element in your view with it and apply any changes to it such as:Or you can call it without arguments (like
$()) to return the current view wrapped by jQuery.To animate a view as you enter in that view/route, do this in your
App.UsersView:(Note: my animation is pretty lame, but it’s just to show where to call the methods, do a real animation)
Here’s a modified version of your JSBin