1

I am new to AngularJS and I've learned quite a bit in the last few weeks, however I have several questions. So currently I have a jQuery prototype that I would like to convert to use AngularJS. For any animations or page transitions I am using css transitions. To change pages, I am changing the body class with jQuery which in turn animates elements on or off the page.

In AngularJS, views are displayed and removed with no animation at all. The way I need it, some views would use some elements from the last view.

For example, there is a start view and a search view that contains a search input field that animates. When the page is loaded, the start view is loaded. When the user clicks submit, it would then load the search view but the search bar should stay there and animate to the top for future searches.

I am somewhat confused as to how to go about doing this. Any suggestions?

demongolem
9,75436 gold badges98 silver badges107 bronze badges
asked Jun 7, 2013 at 19:22

1 Answer 1

3

When possible use the unstable / development versions of angular.js. (There are pretty stable).

The newest have an ng-animate directive which is usable for the most use cases.

Also there is nganimate.org with a lot of examples and there this article and this one which should get you started.

answered Jun 7, 2013 at 19:30
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.