Jump to content

Change menu text from white to black as it scrolls

Go to solution Solved by tuanphan,

Recommended Posts

Posted
Hey, I need help with a website I'm building for a client.
 
I have the menu set as 'dynamic', making the background transparent with white text. Then, when you scroll the menu background turns solid white.
 
However, when the menu background is solid white, the text is also white. This is the problem. I want the text to change to black/grey when it's on a solid white background when it starts scrolling, but keep it white at the top. Does anyone know how I could change it?
 
(I've added a couple of images to show what I mean)
 
PS. When I change the text colour in the styles menu to black, then it shows black on the transparent menu too, which I don't like. 

Screenshot 2023-03-07 at 15.13.38.png

Screenshot 2023-03-07 at 15.24.22.png

     

Emily Lewis

Founder of TwoFold
Squarespace websites for interior designers and architects
twofold-studios.com

  • Replies 2
  • Views 731
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 3 weeks later...
Posted
On 3/8/2023 at 1:12 PM, tuanphan said:

Hi,

Add this to Design > Custom CSS. If it doesn't work, please share your site url, we can check easier

header#header.shrink div.header-nav-item * {
	color: black !important;
}

 

Hey @tuanphan thank you! 

     

Emily Lewis

Founder of TwoFold
Squarespace websites for interior designers and architects
twofold-studios.com

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.