I’m creating a CSS multidimensional menu. I’m using transitions to fade it in/out to avoid the moving the mouse 1 pixel away minimizing the menu issue. It works, however when you move the mouse away, if there’s more than 1 item in the submenu all but the first item is invisible for the ease out transition.
Relevant code:
ul.menu li>ul {
....
overflow:hidden;
visibility:hidden;
opacity:0;
transition:visibility 0s linear 0.5s, overflow 0s linear 0.5s, opacity 0.5s linear 0s;
}
ul.menu li:hover>ul {
overflow:visible;
visibility:visible;
opacity:1;
transition:visibility 0s linear 0s, overflow 0s linear 0.5s, opacity 0.5s linear 0s;
}
Jsfiddle: http://jsfiddle.net/fGWzg/
How to reproduce issue: Move your mouse over the first “hi” in the main bar, then move it off it. Only the first item will remain.
I believe you are talking about Firefox, as webkit browsers do not show any transition, you may want to view your website in Chrome or Internet Explorer. You should always be developing in Chrome, it is simply superior to Firebug now.
As for your problem:
After much work:
http://jsfiddle.net/654Ta/2/
Works in all browsers except IE7 and below (due to the
>selector not supported). If you replace those, it will work in IE6.Cheers