Hello, I was thinking of putting in a project of mine, an "effect" of controlling a certain element using the position of the scroll bar, when the user descends through the page. I tried to do some testing but ended up giving in to nothing. I think it should be easy to do and did not want to use a plugin for this.
In short: it would be a code that would calculate the percentage of the scroll position (when moved up or down) from 20 to 100 and would turn it from 0.0 to 1.0 to apply as opacity on an element or from 0 to 200 to put as "marginTop", for example. Thanks since then =)