[Solved] How to animate scroll down and up the webpage using jquery [duplicate]


If I understand correctly, this is what you’re looking for:

$(document).ready(function() {
    $('ul.navigation').on('click', 'a', function(e) {       
        e.preventDefault();
        $('html, body').animate({
            scrollTop: $( $.attr(this, 'href') ).offset().top
        }, 500);
    });
});

7

solved How to animate scroll down and up the webpage using jquery [duplicate]