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