Directional CSS with scroll-state(scrolled)

Illustration with arrows, a hand with a mouse, and abstract shapes above the headline “Directional CSS with scroll-state(scrolled)”, alongside a circular portrait.

Una Kravets introduces a new scroll-state() container query landing in Chrome 144, enabling CSS to react to scroll direction. This feature allows developers to animate headers, toolbars, or elements based on user scrolling without JavaScript. It can be used as a progressive enhancement, falling back to static layouts.

una.im/scroll-state-scrolled