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
  • Views 1.4k
  • 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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

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.