I am using Angular2 with SystemJs. I am wondering how can I set some animation (like fade-out effect) on the Loading
label in this example. We can see the label before the application loads. Is there a way to add fade out effect when the content of the following changes (index.html):
<body>
<my-app>loading...</my-app>
</body>
CSS leaves some room for improvement
Plunker
The best way is add a class hidden to the label, and after load app remove the class.
To achieve the fade animation with css add this properties to the label:
And to the class hidden
When you remove the hidden class it will animate opacity to default value that is 1 (100%).
If you have JQuery in your app can use $('label').fadeOut(). But nowadays is better use pure CSS