Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save equijada001/5092932 to your computer and use it in GitHub Desktop.
Save equijada001/5092932 to your computer and use it in GitHub Desktop.
jQuery snippet that adds a hover affect for a dropdown menu parent in Bootstrap
//Add Hover effect to menus
jQuery('ul.nav li.dropdown').hover(function() {
jQuery(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn();
}, function() {
jQuery(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment