Here are two small scroll-snapping carousels that I made. In the top one the items are laid out using CSS Flexbox, whereas the second one uses CSS Grid.
The code also works fine with arbitrarily sized
.scroll-items elements, they don’t need to have the same width.
😅Great to see that CSS Scroll Snapping moved away from the
snapList, as first proposed in 2013.
Thank me with a coffee.
I don't do this for profit but a small one-time donation would always put a smile on my face. Thanks!