window scrolltop jquery code example
Example 1: scroll to element jquery
$('html, body').animate({
scrollTop: $("#grepperRocks").offset().top
});
Example 2: jquery get document scrolltop
var top = ($(window).scrollTop() || $("body").scrollTop());