Directional CSS with scroll-state(scrolled)
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser