jquery scroll() method
Translation results:
scroll
English [skrəʊl] American [skroʊl]
n. (Commonly used for recording official documents) paper scroll; scroll, picture scroll, scroll; scroll (decoration);
vt. Make it scroll; (on a computer screen) move from top to bottom (information, etc.), roll pages
vi . (like a scroll) roll up; (like an unrolled scroll) display text on the screen
jquery scroll() methodsyntax
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:
Description | |
Optional. Specifies the function to be run when a scroll event occurs. |