Jump to content

How can I change the color of my navigation button on scroll?

Recommended Posts

6 hours ago, bangank36 said:

We can achieve changing color of button when hovering it via Some Css code. With the changing on scrolling your page, we need to use some javascript to watch your action on page and set the appropriate style for it.

The javascript is only available on the business plan or the above one. What is your current plan?

My current plan is the Personal Plan.

Link to comment
1 hour ago, bangank36 said:

With the button on header, we can change its background color when scrolling down.

#header.shrink  .header-actions-action a {
  background: red;
}

Try my code in Home > Design > Custom Css

Support me by pressing 👍 if this useful for you

That worked, thanks!  Is there any way I can change the text color on scroll as well?  Or does that require javascript code?

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.