jQuery Animated Scroll To Top


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $(document).ready(function() {
  2. $('.backtotop').click(function(){
  3. $('html, body').animate({scrollTop:0}, 'slow');
  4. });
  5. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.