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
  • 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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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

 

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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.