STACKS
As of +30 days +90 days +1 year
sticky-header c10
checked on 1 Dec 2026
valid until 1 Mar 2027

CSS scroll-state(scrolled) can detect scroll direction without JavaScript

In the source's words

`scrolled`: Queries whether a container was most recently scrolled in the given direction.

Address

stacks.jakubdudek.com/sticky-header/c10
In a document: [[sticky-header#c10]]
JSON