Anybody knows how that works? I want to change the background-color of a fixed header when the page is scrolled. One way to do that is to add a class after the page is scrolled (e.g. after 100px). But then the header will change the background exactly after scrolling 100px. What I want is a bit more tricky. On each pixel it should be e bit more or less of the change.
80px scrolled rgba(0, 0, 0, 0.10) 81px scrolled rgba(0, 0, 0, 0.11) 82px scrolled rgba(0, 0, 0, 0.12) ...
You can see an example for that here: http://demo.thememodern.com/architect/homepage-5/
Anybody knows how that works? Thanks for ideas!