I have a div that is hidden when the page loads (usling display: none;) and I want it to fadeIn and out while the mouse comes over it. Unfortunately, the mouseenter event does not get sent while the css attribute display: none; is set. Is there a workaround to this?
div.overlay {
display: block;
visibility: hidden;
width: 860px;
height: 279px;
background-color: rgb(0,0,0);
position: absolute;
margin-top: -279px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
EDIT: the page I’m talking about is here: http://alexzielenski.com/v2/
I am trying to fade in the productDescription div when you mouseover the slider
Edit:
The below won’t work since neither “visibility : hidden” or “display : none” will trigger any mouse events:
The problem is that using
will not render the object to the document.