I want to smoothly scroll down. I do not want to have to write a function for that - especially if jQuery already has one.
You can just use .animate() the scrollTop property, like this:
.animate()
scrollTop
$("html, body").animate({ scrollTop: "300px" });
2.1m questions
2.1m answers
60 comments
57.0k users