Submenu leaving pixels in desktop view
I came up with a template design that I like. Everything works well with no errors, except for one detail. The drop down menu in desktop mode leaves a residue of text for a second or so, before fading off.
Here is the code that affects that area:
.nav-menu li:hover>.sub-menu{
top: 4rem;
opacity: 1;
visibility: visible;
}
.sub-menu li:hover>.sub-menu{
top: 0rem;
left: 8rem;
}
At first I tried using a no hover class after the hover class:
.nav-menu li:not(:hover)> .sub-menu{
display:none;
}
That fixed the problem in mobile view but not desktop view. It eliminated the residue but rendered the sub menu unusable, because it disappeared too fast. I also tried experimenting with transition properties. That made it worse. Is there any easy fix? Here is the page:
[Link edited by moderator for clarity.]
Thanks again.
