Return to Snippet

Revision: 19363
at October 22, 2009 09:00 by stancox


Initial Code
<!-- HTML -->
<input class="scrollTrigger" type="button" value="Scroll" />

//JavaScript
$('.scrollTrigger').click(function(){
  $('html, body').animate({
    scrollTop: $(".ScrollTarget").offset().top
  }, 2000);
});

Initial URL
http://blog.freelancer-id.com/index.php/2009/03/26/scroll-window-smoothly-in-jquery

Initial Description

                                

Initial Title
Scrolling Content Page

Initial Tags
html

Initial Language
jQuery