/ Published in: jQuery
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<!-- HTML -->
<input class="scrollTrigger" type="button" value="Scroll" />
//JavaScript
$('.scrollTrigger').click(function(){
$('html, body').animate({
scrollTop: $(".ScrollTarget").offset().top
}, 2000);
});
URL: http://blog.freelancer-id.com/index.php/2009/03/26/scroll-window-smoothly-in-jquery
Comments
 Subscribe to comments
                    Subscribe to comments
                
                