responsive
CSS Scroll Snap Carousel
Touch-friendly horizontal carousel with CSS scroll-snap — no JavaScript required.
CSS Scroll Snap creates carousel-like snapping behaviour using scroll-snap-type on the container and scroll-snap-align on the items. It works with native browser scroll (touch, mouse wheel, trackpad) and requires no JavaScript. Combine with overflow-x: auto and scrollbar-width: none for a clean, accessible carousel.
Usage Note
scroll-snap-type: x mandatory snaps firmly to each item. Use proximity instead of mandatory for a looser snap that only activates near a snap point — better for shorter scroll areas where you don't want to force snapping on every scroll.
Tags
#scroll-snap#carousel#horizontal-scroll#touch#css-only#responsive