CSS @container scroll-state: Override the JS scroll listener now
Scroll containers have always been a weak point in CSS. For years, if you wanted a navigation bar to change its own style after it became sticky, or a photo to react when it entered the viewport, JavaScript was the only real choice. Most of us have written the same pattern: add a scroll listener,…





