Smooth Vertical Scrolling From One Point To Another In Javascript


$('#foo').click(function () {
    $('html,body').animate({
        scrollTop: $("#scrollToHere").offset().top
    }, 800);
});

Tweet It. Share It.

See more Code Snippet, jQuery