Posted By

electblake on 05/18/11


Tagged


Versions (?)

Basic jQuery Scroll to Top (without plugin)


 / Published in: jQuery
 

  1. $(document).ready(function() {
  2. $('.backtotop').click(function(){
  3. $('html, body').animate({scrollTop:0}, 'slow');
  4. });
  5. });

Report this snippet  

You need to login to post a comment.