Chapter 6. Animations

 

This chapter covers

  • How AngularJS handles animations
  • Understanding the animation-naming convention
  • The three types of animations
  • Concrete examples of each type as it relates to Angello

6.1. Intro to animations

AngularJS was originally created as a framework to handle enterprise CRUD applications. With the introduction of the new animations API, AngularJS has broadened the possibilities to offer something for designers and developers alike.

The most powerful aspect of AngularJS is directives, and AngularJS animations are essentially class-based directives that have the power to harness complex animations with the addition of a single class to your markup.

The goal of this chapter is to show you the AngularJS animation events, the naming convention around those events, and the three types of animations you can do in AngularJS, with practical examples for each. We’re not going to examine CSS3 animations or JavaScript animations in depth, but rather endeavor to lay a strong foundation that you can let your creativity run wild on.

6.1.1. How AngularJS handles animations

AngularJS animations can be distilled down to five events and a class-based naming convention. Once you’ve grasped the events at play and the naming convention, AngularJS animations fade into the background and the animations themselves take center stage.

6.2. CSS transitions

6.3. CSS animations

6.4. JavaScript animations

6.5. Testing

6.6. Best practices

6.7. Summary

sitemap