Chapter 4 - JavaScript animations in AngularJS