UX Lift logo

scroll-state() | CSS-Tricks

CSS scroll-state() is a container query letting you style elements based on scroll behavior—scrolled, scrollable, stuck, snapped—replacing JS for nav reveals, back‑to‑top links, sticky headers, snap effects.

More from CSS Tricks

© 2026. Made in Manchester by Matt Kevan.

Privacy

Cookies

Contact