I want to smoothly scroll down. I do not want to have to write a function for that – especially if jQuery already has one.
Javascript – Is it possible to animate scrollTop with jQuery
javascriptjquery
Related Topic
- Javascript – var functionName = function() {} vs function functionName() {}
- Javascript – Setting “checked” for a checkbox with jQuery
- Javascript – How to know which radio button is selected via jQuery
- Javascript – $(document).ready equivalent without jQuery
- Javascript – How to check whether a checkbox is checked in jQuery
- Javascript – What does “use strict” do in JavaScript, and what is the reasoning behind it
- Javascript – Scroll to an element with jQuery
- Javascript – How to return the response from an asynchronous call
Best Answer
You can just use
.animate()
thescrollTop
property, like this: