This is an issue I seem to keep coming across. If for example I have a drop down navigation menu using a jQuery hover()
function and I quickly move my mouse cursor over then off the <li>
about 10 times, the subnavigation will appear, then disappear 10 times.
Is there any way to prevent this issue from occuring?
Thanks
Yes, use the stop function !
$(this).stop().animate(...);
Or
$(this).stop().show();
We use Hoverintent for our menus. Gives a smart delay before animating:
http://cherne.net/brian/resources/jquery.hoverIntent.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With