Jump to content

Highlighting and greying navigation options

Recommended Posts

  • Replies 2
  • Views 102
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Hi @plloyd88, that is super easy, please add the following code to your website and also see attached video recording for reference:

  1. Navigate to Pages > Website Tools > Custom CSS.
  2. Paste the code into the CSS editor.
  3. Hit Save and you’re done
/* Header Navigation - Set initial opacity and transition */
.header-nav a {
    transition: opacity 0.4s ease; /* Smooth transition on opacity change */
    opacity: 1 !important; /* Ensure links are fully visible initially */
}

/* When hovering over the header nav container, dim all links */
.header-nav:hover a {
    opacity: 0.35 !important; /* Dims the opacity of links */
}

/* When hovering over an individual link, restore full opacity */
.header-nav a:hover {
    opacity: 1 !important; /* Links will return to full opacity */
}

 

 

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

Posted

Add this code into pages > web tools > Custom Css :

/* General Navigation Styling */
.header-nav a {
    color: #b0b0b0; /* Default grey color for inactive links */
    opacity: 0.7;
    transition: color 0.3s ease, opacity 0.3s ease; /* Smooth transition for hover effects */
}

/* Highlight the Active Tab */
.header-nav a.active,
.header-nav a:hover {
    color: #000000; /* Clear/black color for the active link */
    opacity: 1; /* Fully visible */
}

/* Optional: Highlight the Hovered Tab */
.header-nav a:hover {
    color: #000000; /* Clear/black color on hover */
}

 

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.