Login
From:
PQINA
(Uncensored)
subscribe
Applying Styles Based On The User Scroll Position With Smart CSS - PQINA
https://pqina.nl/blog/applying-styles-based-on-the-user-scroll-position-with-smart-css/
links
backlinks
Roast topics
Find topics
Find it!
By mapping the current scroll offset to an attribute on the html element we can style elements on the page based on the current scroll position. We can use this to build, for example, a floating navigation component.