I\'m looking for something to this effect:
$(window).scroll(function(event){ if (/* magic code*/ ){ // upscroll code } else { // downscrol
You can determin mousewhell direction.
$(window).on('mousewheel DOMMouseScroll', function (e) { var delta = e.originalEvent.wheelDelta ? e.originalEvent.wheelDelta : -e.originalEvent.detail; if (delta >= 0) { console.log('scroll up'); } else { console.log('scroll down'); } });