How can i blur the rest of my website when my mega menu is open
At the moment - the menu gets lots within the website like this
and i would like it like this
Thanks
datsau
A user sought help to add a blur effect to their website content when the mega menu is open. Currently, the menu blends into the page content, making it difficult to distinguish.
Desired outcome:
Solution provided:
A CSS code snippet was shared to add to the theme’s Custom CSS section:
backdrop-filter: blur(15px) to create the blur effect.container element when .meganav--visible class is presentStatus: Resolved. The user confirmed the solution worked successfully.
How can i blur the rest of my website when my mega menu is open
At the moment - the menu gets lots within the website like this
and i would like it like this
Thanks
datsau
Hi @TBS2023
Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings
.container:has(.meganav--visible):after {
content: '';
background: #ffffff78;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
backdrop-filter: blur(15px);
opacity: 9;
}
AMAZING - thanks
You are most welcome!