Question

I saw an animation directive that said animations are done best with javascript. Is this the case?

I am using Angular 1.3 and want a plug and play solution for animation. Can you explain the difference in the JS vs CSS question and direct me to a source to get it implemented FAST?

Backstory I have an APP I want to launch tomorrow. I wrote it in Angular quickly but am having trouble with animations.

Was it helpful?

Solution

If you wanna animate angular directives ng-show/hide, ng-repeat, etc then css animations are the way to go. All you do is add some classes to you css file with animations and off you go as long as you have included the NgAnimate as a dependency.

If you wanna implement your own directive animations then JS is the way using $animate service.

Check out year of moo, Matias does a great job of showing them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top