Jump to content

Fixed Header Font Color Change

Recommended Posts

Site URL: http://capybera-point-sp57.squarespace.com

Hey there! I was wondering if there's a way to have a transparent fixed header that switches the font color when scrolling.

I'm not sure if that makes sense.

So right now my header is in dynamic mode and I have the font color as a white because I like the way it looks on the colors of the moving background.

However, I want to add a fixed scrolling header and an issue comes into play when I scroll down. Lower down the background of my site is white, so you aren't able to see the text in the header. Is there a way to have the text be white while at the top of the page, and then change to black or another more visible color when you scroll down?

Link to comment
  • 4 months later...
13 hours ago, adka said:

Hey,

Thanks for that code tuanphanIs there a way to make the same happening for the logo?

 

Kind regards

Adam.

What is your site url? Depend on logo color, we can adjust the code easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.