I have a mega menu element with class .dropdownOpen
activated when it is hovered. Meanwhile I have to change CSS on a completely separate div outside the header div
I have to add this CSS when .dropdownOpen
is acivated by JS to
#theme-page {
filter: blur(8px);
-webkit-filter: blur(8px);
}
What could be the best solution? I tried pure CSS but I was not able to do it.
EDIT:
Here -was- a live example website.
When hovering on Mega menu element, there is a class added .dropdownOpen
just after .has-mega-menu
here:
<li id="menu-item-1068" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children has-mega-menu"><a class="menu-item-link js-smooth-scroll" href="/4" aria-haspopup="true">Mega menu</a>
If that class is added I need to blur the whole div #theme-page
which is located way more down below.