Shopify themes, liquid, logos, and UX
Hi, I have a hover animation when you go over a collection in my mega menu. I want this same animation when you hover in the header menu.
Website is: https://www.mazushi.com
Hi!
The Mega Menu has a dropdown hover animation, but where exactly do you mean by the 'header menu'?
Terence
When you hover over CLOTHING in the mega menu there is an animation of an underline. I would like that same animation when you hover over HOME, STORE, COLLECTIONS, OTHER, SUPPORT.
The following code will do what you want. You can change the values as you like. If you encounter any issues again, feel free to write.
1) Navigate to the 'Edit Code' option in your theme settings, then search for 'theme.liquid' in the search bar.
2) Paste the following code below the '<head>' tag. Please refer to the attached screenshot for guidance.
<style>
.mega-menu a.link-faded:hover {
background-size: 100% 1px;
}
.mega-menu a.link-faded {
background: linear-gradient(to right, currentColor, currentColor) 0 min(100%, 1.35em) / 0 1px no-repeat;
transition: background-size .3s ease-in-out;
}
</style>
It doesn't make HOME, STORE, COLLECTIONS, OTHER, SUPPORT do the underline animation.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025