jQuery - fadeOut on Scroll / fadeIn on “scrollstop”
问题 I have a div positioning working which gets fired by the scroll-event. What happens it that the scroll event gets fired a bunch of times which results in a flickering div. My plan is to fade out that div and fade back in as soon as no more scroll event is fired. How can I check that scrolling is over? I thought about a combination of timeout <-> scroll but actually nothing worked as I hoped. Here's what i got so far. $(document).ready(function(){ //var animActive = false; $(window).scroll