ajax animate scroll to top of page on button click code example
Example: scroll to element jquery
$('html, body').animate({
scrollTop: $("#grepperRocks").offset().top
});
$('html, body').animate({
scrollTop: $("#grepperRocks").offset().top
});