@AJ_Dev thanks for replying but that didn’t fix it for me :(
Interestingly I noticed that this issue is only on the first page load, if I refresh the browser tab then it doesn’t flash on page load. But if I open the same page on another tab then I do see the initial flash.
So if you are using the From To animation and don’t want your element to flicker on initial load then you will have to set the opacity of that element to 0 on the styles panel. The flicker happens because the page html loads faster than the animation, so if your element has an opacity of 1 it will show, then the animation will trigger and it will disappear, but it will not happen on subsequent loads as the animation will be already loaded, does that make sense? I hope this helps.
Hey @Diego_Menchaca, yeah the initial state on IX2 also had this problem, you have to match the initial state with the css for it to work without flickering, specially and most notably, on hero sections. GSAP has something built in to prevent this flickering, the AutoAlpha, that works by hiding elements with opacity 0 so that they are not visible on initial load. Maybe it is built in on IX3 too, I just haven’t seen it yet.
Initial state in IX2 often had the same problem. This is not bound to GSAP or IX3, but to JS styling/animating overall. Since it takes some time for the custom code to load, it displays the initial CSS state first; this is also the reason why it’s often only the first load, since after that the custom code has been cached.
The only solution is either applying the initial CSS in Webflow or applying custom CSS at the end of the .
Wondering if anyone has found an accesible solution to this (both for designers and users).
Setting the opacity to 0 for elements means if a user has JS disabled, elements will remain invisible. The only solution I can think of is to add some fallback styles in a <style> tag inside a <noscript> tag, however picking up all the elements via classes which I have animated will be a little long winded and manual.
Keen to hear if anyone has found a good way to do this yet!
Edit: Even following GSAP guidance to avoid FOUC (Flash of Unstyled Content), when setting visibility hidden to text elements which are animated with “Split text”, the whole text element never becomes visible, I assume because the element is set to hidden, but words are split into individual elements which have their own visibility set.