I need to manipulate user scroll in next way:
When user in some <section>
he can only scroll slowly, then if he will reach ~80% of the section, automatically scroll to the top of the next <section>
Detailed explanation:
I need to slow down the scroll inside an element (in my case it's <section>
) and if the view of the <section>
is scrolled more than 80% scroll to the top of the next section.
The main question is how to slow down the scroll. How to scroll to the next section after 80% of the current is less important.