Posted By

BFTrick on 11/04/10


scroll jquery slide

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Slide to top of page

 / Published in: JavaScript

Slide / scroll to the top of the page.

  1. //scroll to top of screen
  2. $('html').animate({scrollTop:0}, 'slow'); //for most browsers
  3. $('body').animate({scrollTop:0}, 'slow'); //for webkit

Report this snippet  

You need to login to post a comment.