Jump to content

Stretchy Line Navigation in Nav Folder?

Recommended Posts

Site URL: https://rust-snail-j236.squarespace.com/

I'm using the Stretchy Line Navigation plugin from Ghost Plugins (quoted below). It works well for the top-level site navigation links, but I would like to also incorporate it into the links in the navigation folder as well. How do I add it to the menu items in the drop-down site menu?

Access password: kyle

.header-nav-item::after {
  content: '';
  background: #000000; //color
  height: 2px; //thickness
  width: 0;
  display: block;
  margin-top: -7px !important;
  transition: width 0.2s; //animation speed
  margin: 0 auto;
}

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

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

 

Link to comment
  • Replies 2
  • Views 447
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

5 hours ago, kyle00428 said:

Site URL: https://rust-snail-j236.squarespace.com/

I'm using the Stretchy Line Navigation plugin from Ghost Plugins (quoted below). It works well for the top-level site navigation links, but I would like to also incorporate it into the links in the navigation folder as well. How do I add it to the menu items in the drop-down site menu?

Access password: kyle

.header-nav-item::after {
  content: '';
  background: #000000; //color
  height: 2px; //thickness
  width: 0;
  display: block;
  margin-top: -7px !important;
  transition: width 0.2s; //animation speed
  margin: 0 auto;
}

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

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

 

Try adding to Home > Design > Custom Css

.header-nav-folder-content .header-nav-folder-item {
  position: relative;
}

.header-nav-folder-content .header-nav-folder-item:after {
  content: '';
  background: #000;
  height: 2px;
  width: 0;
  display: block;
  transition: width .2s;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  max-width: 100%;
}

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

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing result

 

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.