Mrs. Lastri’s long cloth rolls through the frame’s window: write animation-timeline scroll() or view() and an animation-range, scroll it yourself, and the…
Reading progress bars, reveals on entry, parallax: they used to need a JS scroll listener working out positions every frame, which easily stutters. Now CSS is enough, and transform/opacity animations can run on the compositor.
The progress is the scroll position, not time
animation-timeline is dropped and the animation shorthand without a duration lasts 0s, so use both to keep the element on its last frame, or wrap it in @supports (animation-timeline: view()).width, height, top trigger layout on every scroll, so it stutters again. Use transform and opacity.scroll() and view() scroll() is the whole scroll container’s progress (a progress bar). view() is one element’s position on screen (a reveal, parallax). A reveal on scroll() starts and ends in the wrong places.view() on the motif card, then roll slowly Its progress only changes while the motif passes through the window; outside that it is 0 or 1.entry 0% through entry 100% The reveal starts as the top edge enters and ends once the whole motif is inside.lebar keyframes on the ribbon width is recomputed in layout on every scroll (see offsetWidth); grow (scaleX) looks the same with no layout.