Using `scroll()` as a global timeline
This is the right tool when the whole document or container should control the animation progress.
The `scroll()` function creates a timeline based on how far a scroll container has moved. Instead of saying an animation lasts 600 milliseconds, you say the animation follows the scroll position.
A perfect first use case is a reading progress bar. At the top of the article the bar is empty. At the bottom it reaches full width. The animation feels smooth because the browser ties it directly to scrolling.