CSS Scroll-Driven Animations: Progress Without IntersectionObserver Glue
animation-timeline: scroll() and view(), ranges, and how to animate on scroll without a rAF loop that fights the compositor.
Tag
9 articles · 25 min of reading
animation-timeline: scroll() and view(), ranges, and how to animate on scroll without a rAF loop that fights the compositor.
anchor-name, position-anchor, and fallbacks: tooltips and popovers that stay attached through scroll, plus the overflow cases JS used to own.
How @layer orders unlayered CSS, utilities, and third-party sheets, and a practical layer map for a design-system-plus-app codebase.
Material 3 color roles, density, and mixins: how to theme Angular Material without fighting a leftover M2 palette map.
How :has(), :is(), and :where() let CSS express parent-based and grouped selectors that used to require JavaScript or repetitive rules.
A walkthrough of how browsers turn a style change into pixels on screen, and why some CSS properties are far cheaper to animate than others.
Smooth page and state transitions used to require a JavaScript animation library and careful DOM choreography. The View Transitions API does it natively.
Media queries respond to the viewport. Container queries respond to the component's own box — which is what most responsive design actually needed.
LCP, INP, and CLS each fail for different reasons. A practical, metric-by-metric playbook for diagnosing and fixing each one.