If I have a div that is overflowing, is there a way I could call a jquery function to scroll it down 60px or something?
The scrollIntoView method: The scrollIntoView() is used to scroll to the specified element in the browser. Example: Using scrollIntoView() to scroll to an element.
To auto scroll a page from top to bottom we can use scrollTop() and height() method in jquery. In this method pass the document's height in scrollTop method to scroll.
Yes you can use ScrollTo plugin.
UPDATE Seems like link is broken now. New link here
Or, simply use the scrollTop() jQuery API call.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With