Jump to content

Animate Navigation Dropdown

Recommended Posts

Hi all,

 

I am in the process of making my website more appealing and would like to ask for help with drop down animations.

sebastianborde.com

When hovering over the "work" section in the nav bar, a list of three options appear instantly. I would like to make them appear with a bit of delay, similar to the gif below. The background can remain transparent of course.

Is there a way to achieve this? I have tried to search for a solution myself but have very limited coding knowledge.

66c8fce57e8a354e2aca1860a31dc072.gif

Here is the CSS used so far:

// active nav bold
.header-nav-item--active a{
  background: unset !important;
  font-weight: bold !important;
}
// nav hover bold
.header-nav-item>a:hover {
    font-weight: bold !important;
}
.header-nav-folder-item:hover a {
    font-weight: bold !important;
 }

// Dropdown unicode +
a.header-nav-folder-title:after {
    content: "\002B";
    font-family: 'squarespace-ui-font';
    position: relative;
    top: 1px;
}

 

Bonus question:

I have changed the nav items to go bold when hovering over them and also being continuously bold depending on which section you are currently viewing.

This works great except for the "work" tab with drop-down. Whenever I am in either of the drop-down sections (landscape, urban, or drone). All of them appear bold and even underlined (I previously removed underline completely using CSS). Do you know if this is fixable?

 

Many thanks in advance 🙂

Seb

Edited by Seb_B
Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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
On 11/7/2022 at 12:25 AM, Seb_B said:

That looks awesome indeed, thanks! Would it be possible to speed it up a bit?

Many thanks

Seb

Do you still need help?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.