For my project I wrote a pure CSS hover menu. When the page loads the menu (#drop
) waits for a few seconds before moving up, out of view. You can get the menu back by hovering over a different element (#hover
) at the top of the page.
It works perfectly for me, but there is one issue. When you load the page, and you remain hovered over #hover
, #drop
moves up for a moment after it has finished waiting and moves back down in a glitchy manner.
You can experience it yourself here: https://jsfiddle.net/27mbnpwk/
Just run the script and put your cursor on the text, wait a couple of seconds and see it jump.
Is there a way to make the menu only go up if you're not hovering over #drop
with pure CSS? Or, otherwise, with js?