The div "#menu" becomes opaque after 3 seconds of loading the page.
$(function() {
$('#menu').delay(4000).show().fadeTo('slow', 0.2);
});
In my CSS, I have a :hover-function so that the div ceases to be opaque once a mouse hovers over it:
#menu:hover {
opacity: 1;
transition: 1s;
}
The jQuery works fine - the div becomes opaque after 3 seconds. But then the :hover does not work anymore. Why is that so, and could anyone help me with a solution, please? Thank you!