Jump to content

Navigation Styling - Hover

Recommended Posts

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

Hello!

I've been able to change the color of my navigation text in the top header with custom css. The issue I'm having now is that I do not want the currently selected/active link to also have a hover effect on it. If you're on that page and hover on that navigation tab, the text should not change at all. Only the navigation tabs that are not active should change color on hover.

A side thing I'd like to also do is add a fade to the hover animation so it doesn't change color instantly but has a .5 second fade.

This is the code I currently have for the navigation colors (I also got rid of the underline):

/* Nav item color */
.header-nav-item a {
    color: #a0acae !important; 
}
/* Nav item hover color */
.header-nav-item a:hover {
    color: #000000 !important;
}
/* Nav item active color */
.header-nav-item--active a {
    color: #008da1 !important;
}

.tweak-transparent-header:not(.header--menu-open) .header-announcement-bar-wrapper .header-nav-item--active a {
    background-repeat: repeat-x;
    background-image: none!important;
}

Thanks!

Link to comment
  • Replies 2
  • Views 2.9k
  • Created
  • Last Reply

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.