Add animation on dom event, by using a custom directive, the AngularJS $animate service and the Animate.css library.
Here’s is the code: http://plnkr.co/edit/EdHyzxwLTfNRXFHj9iU1?p=preview Yes, yes I know this can easily be done with the standard AngularJS ngAnimate directive, but I wanted to play around with a custom directive, isolated scope