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.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025