Slide to top of page (jquery)


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



Copy this code and paste it in your HTML
  1. <a onclick="jQuery('html, body').animate( { scrollTop: 0 }, 'slow' );" href="javascript:void(0);">
  2. Go to top
  3. </a>

Report this snippet


Comments


You need to login to view comments.