Jump to content

Scroll-back header menu customization

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://bobcat-deer-6yf9.squarespace.com/

Hi,

I'm trying to custmoise the background colour of my header when it's 'scrolling back'. The background is transparent in the default state, but when I'm scrolling to the top of the page, the 'scroll-back' effect gives the header a black background. Ideally I'd like it to be white. Anyone know how I can fix this?

Any help would be appreciated. 

https://bobcat-deer-6yf9.squarespace.com/

Thanks!

image.thumb.png.8b168536f1030a599d4207e285640c74.png

 

Link to comment
  • Replies 2
  • Views 347
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

Add to Design > Custom CSS

header#header.shrink {
    background-color: white !important;
}
header#header.shrink a#site-title {
    color: black !important;
}
header#header.shrink svg {
    fill: black;
}
header#header.shrink div.header-nav-item a {
    color: black;
}

 

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.