George Bailey George Bailey - 1 year ago 94
jQuery Question

Is it possible to animate scrollTop with jQuery?

I want to smoothly scroll down. I do not want to have to write a function for that - especially if jQuery already has one.

Answer Source

You can just use .animate() the scrollTop property, like this:

$("html, body").animate({ scrollTop: "300px" });
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download