For simple animations like fading in / out, you need the following CSS classes:
.my-animation { -webkit-transition: 0.5s linear all; transition: 0.5s linear all; opacity: 1; } .my-animation.ng-hide { opacity: 0; }
UPDATE
If you have another transition to an element that you do not want to receive, use the following CSS definitions to apply only transistors when in / out attenuation:
.my-animation { opacity: 1; } .my-animation.ng-hide { opacity: 0; } .my-animation.ng-hide-add, .my-animation.ng-hide-remove { -webkit-transition: 0.5s linear all; transition: 0.5s linear all; }
See also this short demo .
gkalpak
source share