CSS : adding rules to animate ng-enter ng-leave for elements with ng-if and ng-show, they must declare class animate to have the effect.