Jump to content

Changing header color on scroll back

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

On 3/16/2023 at 4:47 PM, MarcUK1603 said:

Add to Design > Custom CSS

header#header.shrink {
    background-color: #f1f !important;
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 3/20/2023 at 4:32 PM, MarcUK1603 said:

Thanks for this. The code above seems to apply color change to all sections. I'd like header on scroll back to dynamically change depending on background color of section. Is that possible?

This is complex, you will need to use CSS + JavaScript code

CSS only can't solve problem

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.