An animation directive to use with ngAnimate 1.2+ and ui-router