The CSS scroll-state() query, surprisingly, has nothing to do with whether you’re doom-scrolling in a state of existential dread. It does, however, allow you to change the CSS used based on scrolling behavior.


scroll-state() originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.