Jump to content

How to exclude Login button from header nav items hover effects

Go to solution Solved by jimzdano,

Recommended Posts

I am using this code for a nice underline effect on hover. It is for all header nav items but it is also applying to my login button. How to I exclude my login button so it is not effected by the code? 

.header-nav-item::after {
  content: '';
  background-color: #a9a285;
  height: 4px; //thickness
  width: 0;
  display: block;
  margin-top: 0px !important;
  transform: scaleX(1);
  transition: width .7s ease; 
  margin: 1 auto;
}

.header-nav-item:hover::after {
  width: 100%;
}

.header-nav-item--active a {
    background-image: none !important;
}

Link to comment
  • Replies 1
  • Views 797
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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.