I’m loading in a script for Font Awesome to display the down arrow and want to wait for this to be loaded before the class is applied to animate the elements. I’ve attempted to use addEventListener to apply the class “initialfade” once everything has loaded but it doesn’t appear to wait before firing the animation.
Below is my code so far:
On the example, the dots and text continue to animate regardless of if the down arrow has loaded or not. You may need to do a hard refresh (Ctrl + F5) to see what I mean.
Thanks in advance!