Styling Based on Scroll Position
Styling Based on Scroll Position

<![CDATA[ ]]> Share this: Rik Schennink documents a system for being able to write CSS selectors that style a page when it has scrolled to a certain point. If you’re like me, you’re already on the lookout for document.addEventListener('scroll' ... and being terrified about performance. Rik gets to that right away by both debouncing the... » read more