Detect Scroll up and Down event with jQuery
2nd March 2025 - jQuery
In this tutorial, we will show you how to detect whether you scroll up or down using jQuery which will allow you to perform an action based on the direction of scrolling. Here is how you can achieve this with few very lines of jQuery:- $(function(){ var lastScrollTop = 0, delta = 5; $(window).scroll(function(){ var […]