Hi guys, I'm back for another question !
So today's problem is quite different.
I've added another animation using three.js this time. This plus the images sequence makes the whole thing quite heavy to load (30mo average).
So I wanted to create a simple preloader using DOMContentLoaded & window.onload as already suggested in a thread here.
Yet, the gsap animation doesn't appear after loading time is done.
The codepen I provide only shows a small portion of code but I tested my script on this : https://www.bighoot.net/
Since the codepen is fast to load, it's hard to guess a thing. Yet, when I tested on my own page, it does take a certain amount of time (roughly 6/7 second with my connection).
So once again, if you guys have an idea, I'm up to it !