Collapsing App Bar: A Timeline, Not a Duration
The app bar sits in flow and sticky, so it holds the top edge while the list runs under it. One keyframe says where it ends up, 96px down to 56px with the type going 28px to 18px, and the animation is handed a timeline rather than a duration: scroll-timeline-name on the scroller, animation-timeline on the bar, animation-range 0 100px. The first 100px of scroll is the whole animation, and past that it holds. No scroll listener, no script. The icon is sized in em, so it rides the same font-size and the group shrinks together. Two things bite. The animation shorthand resets animation-timeline and animation-range, so both come after it. And collapsing the bar shortens its own scroller, which Chrome answers by pulling scrollTop back and stalling the collapse, so it needs overflow-anchor: none.