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" });
1.4m articles
1.4m replys
5 comments
57.0k users