How to make navigation hover effect on Squarespace 7.1

This tutorial will show you how to add an animated hover effect to your site navigation, note this only applies to the desktop navigation.

Complexity: Easy


Step 1

Simply copy the css below, Then head to to ‘Design’ and then ‘Custom CSS’ and paste the code.

// Navigation Line hover effect
.header-nav-item::after {
  content: '';
  background-color: #000;
  height: 2px; //thickness
  width: 0;
  display: block;
  margin-top: 1.5px !important;
  transform: scaleX(1);
  transition: width 2s ease; 
  margin: 0 auto;
}

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

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

Step 2

You can change color, thickness, and transition speed values to your liking



All work in this guide is provided ?“AS IS”. Other than as provided in this agreement, this guide makes no other warranties, express or implied, and hereby disclaims all implied warranties, including any warranty of fitness for a particular purpose.

If you require professional advice, we recommend that you purchase the services of a developer.

Primitus Consultancy

We work with small and medium-sized businesses to help create a professional online presence. We provide a one shop full-service design studio in London, United Kingdom. 

https://primitusconsultancy.co.uk
Previous
Previous

How to make a flip navigation effect on Squarespace 7.1

Next
Next

How to make your last navigation item a button in Squarespace 7.1