jbutko
2/25/2014 - 7:27 PM

jQuery: Scroll to ID element

jQuery: Scroll to ID element

$('a[href*=#]').click(function(){
    $('html, body').animate({
        scrollTop: $( $.attr(this, 'href') ).offset().top
    }, 700, 'linear');
    return false;
});