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.
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.