jaxnoel Posted December 28, 2021 Share Posted December 28, 2021 Site URL: https://www.team1727.org/ Password: 1727 Hello! I would like to create a hover underline animation (going left to right) in my navigation bar and I am not sure how. This should only apply to main headings, and nothing in the dropdown menus. Any help with custom CSS would be greatly appreciated! Link to comment
Beyondspace Posted January 1, 2022 Share Posted January 1, 2022 On 12/29/2021 at 1:55 AM, jaxnoel said: Site URL: https://www.team1727.org/ Password: 1727 Hello! I would like to create a hover underline animation (going left to right) in my navigation bar and I am not sure how. This should only apply to main headings, and nothing in the dropdown menus. Any help with custom CSS would be greatly appreciated! Try .header-nav-item > a:after, .header-nav-folder-item > a:after { content:''; width: 0px; height: 1px; background: #fff; display: block; transition: width .2s ease; } .header-nav-item > a, .header-nav-folder-item:hover { background: none !important; } .header-nav-item--active > a:after, .header-nav-item:hover > a:after, .header-nav-folder-item:hover > a:after { width: 100%; } .header-nav-folder-item:hover > a { color: #fff !important; } 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, Lightbox Studio pluginIf 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment