Jump to content
Search Community

Need help with GSAP Navbar

paulopanganiban test
Moderator Tag

Recommended Posts

Hello wonderful people. I need help with my navbar, 

 

So the codepen demonstrates the perfect animations I need, the only thing I'm lacking is once the navbar is on the very top of the view port, return it to its original color and not red. I don't want to use CSS classes for this but rather use full control of scroll trigger and timelines. 

 

I'm using this with React and Styled-components, I tried using toggle class and with start and end markers, no avail :( 

 

 

Thank you to anyone whose willing to help! 😃

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