How to hide a Div when the scroll bar is moving with jQuery?
问题 I just want the #menu to fade when the scroll bar is moving to provide a less cluttered interface. Is there code that would allow this? I guess basically what I'm looking for is how to grab the scroll bar movement event. To slowly fade out the #menu after 1 seconds of scrolling and bring back the #menu after 2 second of scroll-bar inactivity. Thank you so much! 回答1: var $menu = $("#menu"); var opacity = $menu.css("opacity"); var scrollStopped; var fadeInCallback = function () { if (typeof