(Up-) Scoped Scroll Timelines
Briefly

Incorporating scroll-driven animations transcends traditional parent-child hierarchies in the DOM; timelines can now be hoisted for sibling elements to respond to scroll events actively.
The conventional approach limited descendants to interact with their ancestors' timelines. However, with clever techniques, any element in the DOM can now leverage another element's scroll timeline.
Custom properties and scroll timelines can be synchronized across different elements for innovative control of animations, fostering creativity without the usual constraints of the DOM hierarchy.
This new method allows for greater interactivity in designs like quiz games or unlock puzzles, where elements can accurately react to specific scroll positions.
Read at Frontendmasters
[
|
]