I am coding a page where the first time the user scrolls, it doesn\'t actually scroll the page down, instead it adds a class with a transition. I\'d like to detect when the
this one work in react app
after add event listener, in function u can use deltaY To capture mouse Wheel
onMouseWheel = (e) => { e.deltaY > 0 ? console.log("Down") : console.log("up") }