r/Frontend • u/bogdanelcs • 5d ago
CSS timeline-scope: One Scroll, Multiple Carousels
https://css-tricks.com/css-timeline-scope-multiple-carousels/
13
Upvotes
r/Frontend • u/bogdanelcs • 5d ago
1
u/Opposite_Sector2145 5d ago
if you use timeline-scope, nested carousels can have scroll-linked animations that interfere with each other if you forget to set a unique timeline-name for each one. Overlapping names will mess up which scroll drives which animation.
1
u/dusanodalovic 4d ago
css isnt my field, i mostly do backend, so maybe a dumb question. does it still work when the carousel mounts later, like a framework rendering it after the parent already exists? i wonder if the timeline-scope on the parent picks up a scroller that shows up late, or if you need to poke it somehow.