O'Reilly logo

Mastering AngularJS Directives by Josh Kurz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JavaScript-based animations

There is a large argument going on in the community. On one side, there are the CSS animators and on the other, the JavaScripters. Both sides believe that their version of animation techniques is better than the other. The truth is that it depends on the specific use case.

Luckily, AngularJS has the built-in ability to allow for both. The implementation details, for JavaScript animations, are based around the same aspects of the CSS-based animations in AngularJS. Everything is based around CSS classes. The CSS classes that are added to an element can be a selector that is the key to an animation closure that holds that class's specific animation logic.

AngularJS animation factory functions are built in the exact same ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required