The scroll event triggers when the user scrolls on your webpage. The scroll event can be used on any scrollable element or even the entire window object (browser window). The scroll() method fires the event, or you can attach it to a function to run custom code when the user triggers the scroll event.
Keep reading for full examples.
- .scroll() | jQuery API documentation
- Using document.body.scrollTop
- Using document.documentElement.scrollTop
- How to Smooth scroll to div id jQuery
- Smoothly scroll to an element without jQuery plugin
- Changing jQuery Smooth Scroll to Fast Scroll
- Scrolling to a specific element
- Frequently Asked Questions