Login
From:
CSS Tip: Learn CSS the easy way
(Uncensored)
subscribe
Calculate the scroll progress of an arbitrary element
https://css-tip.com/scroll-progress-2/
links
backlinks
Roast topics
Find topics
Find it!
The same code of the previous trick can also be used to get the scroll progress of any element on the page. The only difference is the use of self inside the scroll() value.