Choose direction
Snap horizontally for a carousel or vertically for a full-page feed.
Configure a scroll-snap carousel or gallery. Scroll the preview to feel it snap, then copy the ready-to-use CSS.
Snap horizontally for a carousel or vertically for a full-page feed.
Adjust how many panels appear and the spacing between them.
Get ready-to-use CSS and HTML with scroll-snap-type and scroll-snap-align.
scroll-snap-type and scroll-snap-align let the browser automatically settle scrolling on specific positions, like carousel slides, without any JavaScript.
Mandatory always snaps to the nearest point after a scroll gesture ends. Proximity only snaps if the scroll position ends up close enough to a snap point.
No, the snapping behavior itself is pure CSS. JavaScript is only needed if you want extra features like next/previous buttons or page indicators.