jquery - Slowing Down Slideshow Effect on MegaMenu -


i have megamenu working, it's clunky. i'm trying slow down slidedown effect additional jquery (which second section of code see below). far seem grabbing wrong elements though. elements should placing in last section of jquery code in order target drop-menu items, rather whole menu? right whole menu vanishes when clicked, rather individual elements.

jquery(document).ready(function(jquery) {     var menu = jquery('#mega-menu-wrap-secondary'); // change target menu      // not edit below line     jquery('li.mega-menu-item', menu).on('open_panel', function(e) {         var sub_menu = jquery('.mega-sub-menu', jquery(this));         menu.css('margin-bottom', sub_menu.height());     });     jquery('li.mega-menu-item', menu).on('close_panel', function(e) {         menu.css('margin-bottom', '');     }); });  jquery(document).ready(function(){     jquery(".mega-menu").mouseenter( function() {         jquery("li.mega-menu-item").slidedown(1000);     });      jquery(".mega-menu").mouseleave( function() {         jquery("li.mega-menu-item").slideup(1000);     }); }); 


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -