/ Published in: JavaScript
                    
                                        
Smooth scroll to anchor links, requires Interface plugin
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
$.fn.scroller = function() {
var speed = 'slow'; // Choose default speed
$(this).each(function() {
$(this).bind('click', function() {
var target = $(this).attr('href'); // Get scroll target
$(target).ScrollTo(speed);
return false;
});
});
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                