Function:When the user scrolls the specified element, the scroll event will occur. The scroll event applies to all scrollable elements and window objects (browser windows). The scroll() method triggers the scroll event, or specifies a function to run when a scroll event occurs.
Trigger the scroll event: $(selector).scroll()
Bind the function to the scroll event: $(selector ).scroll(function)
Parameters:
##Parameters
Description
function
Optional. Specifies the function to be run when a scroll event occurs.