Jump to content

Make logo/links/icons white on transparent navbar and then invert to black on scroll

Recommended Posts

  • Replies 4
  • Views 409
  • Created
  • Last Reply
Posted
17 hours ago, cstraw said:

Site URL: https://ostendclothing.com/home-1

I am trying to achieve a navbar that works like this: https://sirplus.co.uk/

... where the logo/links/icons are white on landing and then invert to black on scroll and stay black on all other pages.
 
Here is the website: https://ostendclothing.com/home-1
Password: linen
 
Thanks

Add to Home-1 Page Header

  <style>
header#header:not(.shrink) * {
    color: white;
}
header#header:not(.shrink) img {
    filter: invert(1);
    -webkit-filter: invert(1);
}
header#header:not(.shrink) .icon {
    filter: brightness(0) invert(1);
}
</style>

 

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!)

Posted
On 5/17/2021 at 11:38 PM, cstraw said:

Site URL: https://ostendclothing.com/home-1

I am trying to achieve a navbar that works like this: https://sirplus.co.uk/

... where the logo/links/icons are white on landing and then invert to black on scroll and stay black on all other pages.
 
Here is the website: https://ostendclothing.com/home-1
 
Thanks

The url doesn't exist. Can you check again?

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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.