var box = $('.box');
$(window).on('scroll', function() {
var top = $(window).scrollTop() + $(window).height() - 100;
box.css('top', top);
});
If I scroll down a little faster, the box will like shake a little bit, is there an option like fps to adjust the scroll down frequency, I want to box move after scroll down as fast as just like fixed there.
PS: I know I can use fixed for this case, but it's just a demo code to emulate the real case.