Share Posted March 11, 2022 Hello. I'm currently using GSAP SplitText and Scrolltrigger to animate lines of text. However, as the site loads, the text is shown briefly before animating. I.E. the animation fires properly but only after the text is already visible for a short amount of time. Is there an easy way to hide any SplitText/ScrollTrigger animations until they have fired? Thanks! See the Pen BaJBYKK by neontrenton (@neontrenton) on CodePen Link to comment Share on other sites More sharing options...
Share Posted March 11, 2022 You could add a css rule to hide the text until javascript can reveal it, like this: See the Pen WNdezBW by geedix (@geedix) on CodePen 2 Link to comment Share on other sites More sharing options...
Author Share Posted March 11, 2022 Thank you! That works perfectly. Link to comment Share on other sites More sharing options...
Share Posted March 11, 2022 This Quick-Tip article talks about dealing with the general concept of (FOUC) Flash Of Unstyled Content. 😉 https://greensock.com/fouc/ 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now