Jump to content

Sticky Navigation Bar Transparent to Solid Background Color When Scrolling Down

Recommended Posts

Site URL: https://www.tlwchurch.com/

Hello,

I'm trying to make a sticky navigation bar. So I want my navigation bar to be transparent that bleeds into the first picture in the home page and then it becomes solid background color once it scrolls down, sticking to the top of the page.

I've tried this code:
 

.Header.Header--top  {
    position: fixed;
    position: -webkit-sticky;
    top: 0px;
    z-index: 1000;
    width: 100%; 
}

But it hasn't work to get a sticky navigation bar. Maybe my ID or class name is different, but I'm not too sure.


Help is greatly appreciated! Thank you!

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

Top Posters In This Topic

  • 1 year later...

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.