JavaScript, CSS3 transitions, and key frame animations offer a wealth of creative visual effects, for example when transitioning between two states. AngularJS offers hooks into these using the ngAnimate module. There are a range of directives that support animations, out of the box, and a full list can be found at https://docs.angularjs.org/api/ngAnimate. If you're looking for animation detection support while performing DOM operations in custom directives, then look no further than the $animation
service (https://docs.angularjs.org/api/ngAnimate/service/$animate).
For information on animations, I highly recommend that you read this great article at http://www.yearofmoo.com/2013/08/remastered-animation-in-angularjs-1-2.html#testing-animations. This chapter will briefly introduce you to unit testing JavaScript animations, first using a synchronous approach and then asynchronously. The AngularJS team provides the animation mock module to help test animations (https://github.com...