console log scroll position code example
Example: window log scrollpostion
$(window).on('scroll', function() {
console.log( $(this).scrollTop() );
});
$(window).on('scroll', function() {
console.log( $(this).scrollTop() );
});