I\'m looking for something to this effect:
$(window).scroll(function(event){ if (/* magic code*/ ){ // upscroll code } else { // downscrol
stock an increment in the .data () of element scrolled, you will then be able to test number of times the scroll reached top.
.data ()