$('html, body').animate({ scrollTop: $("#grepperRocks").offset().top });
$('html, body').animate( { scrollTop: $($(this).attr('href')).offset().top, }, 500, 'linear' )
document.getElementById("divId").scrollIntoView();
$("#button").click(function() { $([document.documentElement, document.body]).animate({ scrollTop: $("#elementtoScrollToID").offset().top }, 2000); });