I need to, when I scroll the page, apply css to div, for example:
When the user arrives in the middle of the site, or in the desired section, apply a CSS from this point to a div
, as it scrolls down the page, it changes the value of this item in CSS, the% of% of this 1px
increases with each scroll, giving the impression that as the page scrolls, the item will move to the side.
Has anyone ever had to use something similar?