go to anchor jquery

JavaScript
    $('html,body').animate({ scrollTop: $("#anchor").offset().top }, 'slow');
Source

Also in JavaScript: