How to get scroll percentage of a particular section on a page using Vanilla JS/jQuery

Viewed 23

First of all thanks a lot StackOverflow community for all the support you have provided ever.

Here is my concern:

I am trying to get user scroll percentage of a particular section on a page. Suppose a page has 8-10 sections and user is scrolling through the page, once section no.8 comes into viewport, I want to get scroll percentage of that particular section.

How can I achieve it using jQuery or vanilla JS?

For more clarity you can watch this quick video here. I want to achieve same.

https://share.cleanshot.com/I4jYqM

I will appreciate your support.

Thanks!

0 Answers
Related