Jump to content

Navigation colour change on scroll

Recommended Posts

Site URL: https://www.woodlands.derby.sch.uk

Hi,

I wondered if anybody was familiar with changing the colour of the navigation bar when scrolling down.

Currently, my navigation is set as 'solid' and 15% opaque - however I would like the bar to turn green when scrolling down and solid in colour. I was wondering if there was a work round for achieving this.

https://www.woodlands.derby.sch.uk

Any advice would be welcome! Thank you! 🙂

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

46 minutes ago, aws_derby said:

Site URL: https://www.woodlands.derby.sch.uk

Hi,

I wondered if anybody was familiar with changing the colour of the navigation bar when scrolling down.

Currently, my navigation is set as 'solid' and 15% opaque - however I would like the bar to turn green when scrolling down and solid in colour. I was wondering if there was a work round for achieving this.

https://www.woodlands.derby.sch.uk

Any advice would be welcome! Thank you! 🙂

Try adding to Home > Design > Custom Css

#header.shrink .header-nav-item  > a {
  color: orange;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing

image.thumb.png.4a772e131c184157132daff8f8265fd7.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
On 8/10/2022 at 2:53 AM, aws_derby said:

The text does change colour thank you. Is there a way of changing the navigation bar itself into a solid colour?

 

Thanks again for your help!

Use this CSS code

header#header.shrink {
    background-color: green !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

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.