There he is:
jsFiddle
Basically, I changed your js events, now the animation is controlled only with the mouse and mouse element of your li. Li contains a submenu, so the submenu will remain visible even when you leave the area in which the link is located.
$(document).ready(function() { // Menus $('ul.menu').hide(); $('ul#main-nav li').mouseenter(function() { $('ul.menu', this).animate({opacity: 'show'}, 'slow'); }); $('ul#main-nav li').mouseleave(function() { $('ul.menu', this).animate({opacity: 'hide'}, 'fast'); }); });β
source share