Jump to content
Search Community

Change background color when scroll trigger panel cross element

Sndn test
Moderator Tag

Recommended Posts

Hello :)

 

I have panels showing through ScrollTrigger and an absolute right navigation with links to each panel section (not working in the CodePen). 

 

Im trying to get a similar effect as the mix-blend-mode: difference present on the CodePen. I want to make my points to be black or white only (depending on a function that determine the panel background brightness) when the panel is scrolling and crossing each point individually.

 

I tried several things but never succeed to find a solution. Is anybody with a hint or a solution to help me? :) 

 

Thank you in advance!

See the Pen BamGrNR by dmns (@dmns) 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...