Una Kravets 12/17/2025

Directional CSS with scroll-state(scrolled)

Read Original

This article introduces the new CSS `scroll-state(scrolled)` container query, available in Chrome 144. It explains how to use the query to apply styles based on the user's last scroll direction (up, down, left, right) and demonstrates practical implementations, such as creating a hide/show header bar for better screen real estate management.

Directional CSS with scroll-state(scrolled)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week