Jump to content
Search Community

Dynamically Change Color on Scroll

GRG test
Moderator Tag

Recommended Posts

Hello and Merry Christmas,

 

I am attempting to dynamically change the title color based on the title underlay.

 

Ideally i would like the text to be white while there is the video or other element under and then have the title text be black when over the white background. 

 

I have tried many Iterations and help would be much appreciated. 

 

Thank You!

See the Pen poZjdjg by sliceofshaun (@sliceofshaun) on CodePen

Link to comment
Share on other sites

I can't think of a simple way to force it to always be either white or black per your request. That's using mix-blend-mode right now, and there are no options that'd do what you're asking. You may be able to do a complex masking thing that'd basically reveal another copy of that text within certain areas, but that sounds tricky. I wish I had a silver bullet for you. Maybe someone else has an idea. 🤷‍♂️

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...