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