How to get the current scroll state value of the window using JavaScript?
Originally Published Here ๐!
To get the current scroll state value, you can use the pageXOffset and pageYOffset properties in the global window object in JavaScript.
// Current Scroll state value from top
const scrollValuefromTop = window.pageYOffse...
melvingeorge-me.hashnode.dev1 min read