jQuery scroll() Event

Last Updated Jul 21, 2015, 12:00:06 PM

jQuery scroll() Event

The jQuery scroll() method triggers the scroll event, or attaches a function to run when a scroll event occurs.


The jQuery scroll() method will be called when scroll position is being changed. The jQuery scroll() event also raised when we click up on the mouse, drag up on scrollbar, dragging inside the element, pressing the arrow keys or mouse scroll wheel.


In the above jqueryscroll() event method example, we will see the fading effect which indicates when a scroll position is being changed.

jQuery scroll() event method

Try It Now

Other Advanced jQuery Events you might want to learn

jQuery Complete Events Reference

jQuery Events

jQuery Document Events

jQuery Keyboard Events

jQuery Mouse Events

Sources and Credits

The content and methods in the tutorial has been referred and updated with jQuery API and The jQuery Foundation

Last Updated Jul 21, 2015, 12:00:06 PM