×

Welcome to TagMyCode

Please login or create account to add a snippet.
2
0
 
1
Language: Javascript
Posted by: Nicole Patten
Added: Sep 7, 2016 6:28 PM
Views: 7
Tags: no tags
  1. $scrollButton.on('click', function(event){
  2.       event.preventDefault();
  3.       $('body,html').animate({
  4.         scrollTop: 0 ,
  5.         }, 800
  6.       );
  7.     });