+ 4
How can I know in Java script the page scrollUp or down
Javascript
7 odpowiedzi
+ 5
Take window.pageYOffset before scrolling happens and after scrolling happened
Substract after from before .. if negative, the scroll direction is up, if positive it's down
+ 4
You will use window.onscroll() event to detect scrolling and take to the scroll positions before and after
+ 1
How can I know in Java script the page scrollUp or down