Solution Anta Posted February 24, 2021 Solution Share Posted February 24, 2021 Hello all, I'm using the Codepen below to reveal text on scroll, but I'm hoping to reveal word by word instead of line by line. The effect I'm trying to get is so similar as the one attached but with a big of stragger between words, not only lines. Is there a way to accomplish that? Thanks in advance See the Pen wvMZoNN by cameronknight (@cameronknight) on CodePen Link to comment Share on other sites More sharing options...
tailbreezy Posted February 24, 2021 Share Posted February 24, 2021 Maybe something like that. You need to wrap your lines/words/chars with another splittext and use overflow:hidden on it, so that you get the effect. See the Pen 9ce715060b8429eae2f0a7f92eec489d by dadacoded (@dadacoded) on CodePen 3 Link to comment Share on other sites More sharing options...
BrianCross Posted February 24, 2021 Share Posted February 24, 2021 Yeah SplitText can do that no problem. It can split on each line, word or character. https://greensock.com/splittext/ 2 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