jquery scrull top link with class code example
Example 1: scroll jquery to anchor
$('html,body').animate({ scrollTop: $("#anchor").offset().top }, 'slow');
Example 2: scrool to top jquerry
$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});