apamphilon

Smooth Scroll

$(function () {
    $('.back-to-top').click(function(event) {
    var offset = 0;
    var target = $('html').offset().top - offset;

    $('html, body').animate({scrollTop:target}, 750);
        event.preventDefault();
    });
})

Comments: