Monday, October 15, 2012

Scroll to top when clicking a button

$(".signUp").click(function() {
     $('html, body').animate({
         scrollTop: $(".left").offset().top
     }, 2000);
 });

No comments:

Post a Comment