On my angular 4 project I have added animation in a css file and added classes on elements to apply animation on page load, right now its not working on first page load and app takes time to load and css applies in between, once the page is loaded fully then they are working fine but I want them on first page load.
One solution is to load animation file after app load, but not sure how can I do it.
Second way is to use javascript to add classes on page load but then it will take time and requires code for different components.
Is there a way to do it ?
Any help is appreciable.