We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Mega menu fade in menu not showing until i hover over it

Mega menu fade in menu not showing until i hover over it

JoaquinExcitare
Explorer
55 0 20

Hello,

 

I added a fade effect on my mega menu, whe you open the store the menu "shop" is not visible until you hover over it. The fade works fine. 

 

How can I change that the mega menu fades it but the menu "shop" is always vissable?

 

I aded this code for the fade in effect:

.mega-menu { opacity: 0; transition: opacity 0.3s ease; } .mega-menu:hover { opacity: 1; }

Screenshot 2024-12-02 at 21.10.55.pngScreenshot 2024-12-02 at 21.11.02.png

Replies 2 (2)

theycallmemakka
Shopify Partner
1813 440 474

Hi @JoaquinExcitare ,

 

I have written an updated CSS to achieve this. Please use below CSS to fix this issue.

.mega-menu .mega-menu__content{ 
    opacity: 0; 
    transition: opacity 0.3s ease; 
} 
.mega-menu:hover .mega-menu__content{ 
    opacity: 1; 
}

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

JoaquinExcitare
Explorer
55 0 20

Hello, thanks for your respond. This code does not work.