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