Jump to content
Search Community

Reveal paragraph and text with highlighted text on scroll

mos test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Hi, I created a ScrollTrigger for each section of my page where I split words and text so that the color of the characters changes during the scroll. So far so good, but I would like the data-attribute that I generate for example for the word "consequat." [data-word='consequat.'] activates as soon as I intercept the word. Currently the background color is only added after all text has been colored. Any help?
 
 
 

See the Pen wvZJNmy by qurtopianodesign (@qurtopianodesign) on CodePen

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...