jquery - Flickering issue on mouse over -


i found many other members same problem except none of them close enough script fix problem or don't have technical knowledge in jquery solve myself.

i have simple slide menu opposite of drop down , noticed flickers when mouse on child li

i placed here http://jsfiddle.net/noeg/f9qyb/2/ demonstrate issue

(function ($) {  $("#menu > ul > li:has(ul)").mouseenter(function () {     $(this).find("ul").stop(true, true).slidedown(); }).mouseleave(function () {     $(this).find("ul").stop(true, true).slideup(); });  })(this.jquery); 

thanks.

simply add short delay:

$("#menu > ul > li:has(ul)").mouseenter(function () {     $(this).find("ul").stop(true, true).delay(300).slidedown(); }).mouseleave(function () {     $(this).find("ul").stop(true, true).delay(300).slideup(); }); 

http://jsfiddle.net/samliew/f9qyb/3/


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -