Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('html, body').animate({ scrollTop: 0 }, 500);
- $("html, body").animate({
- 'scrollTop' : $('#thediv').offset().top
- }, "slow"); // or fast, number
- <div id="thediv"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement