Posted By

landonmiller on 01/22/10


Tagged

jquery


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

asifroyal
netzwerktourist


Go to top of the page, smoothly


 / Published in: jQuery
 

  1. $( 'html, body' ).animate( { scrollTop: 0 }, 0 );
  2.  
  3. //smooth scrolling
  4. $( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );

Report this snippet  

You need to login to post a comment.