Posted By

magicrebirth on 07/20/10


Tagged

jquery animation


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

Vordreller
legacye
laurentzziu
lanabear
Beppoi


Go to top of page using jQuery


 / Published in: JavaScript
 

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

Report this snippet  

You need to login to post a comment.