That's pretty much the question.
I have search everywhere online, but I cannot find any implementation of the css
scroll-snap-stop: always
written in pure javascript.
I do not want to use the css property because not all browsers respect it (let alone older browsers).
Does any one have any sample code around that does something similar? I do not know where to look or how to start.
Here is an example of I working here https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-stop
It forces the user to stop at each section
[EDIT] -- I basically want the same functionality of what scroll-snap-stop: always
does without using it. There should be no css, just pure javascript that mimics that same css behavior.
I need pure javascript instead of css because not all browsers honour the scroll-snap-stop: always
css property. So I wanted to code a javascript alternative that does the same thing.