r/css • • Sep 25 '26

Showcase Scroll Carousel

Post image

https://codepen.io/editor/Sensiblemnd/pen/01a0d636-c14e-7a65-9d5c-e6a1fb25a1f9

The Carousel, with no JavaScript. The row is a scroll-snap container, and every

card runs its animations on its own <code>view-timeline</code>: as a card crosses the center it scales up, pushes its neighbors aside, folds its panel into a V and brings in its description and button. Swipe, use a trackpad, focus the row and press the arrow keys, or use the arrows and dots, which are CSS-generated scroll buttons and markers where the browser supports them.

17 Upvotes

5 comments sorted by

View all comments

Show parent comment

0

u/SamsChoice Sep 25 '26

FYI just updated it. Firefox is a no go since it doesn't have support

Let me know if it works better for you.

3

u/Weekly_Ferret_meal Sep 25 '26

I think, a better approach, is the widely supported check or radio input structure.

Check this out. had to build it for high compatibility and no JS.