CSS Scroll Snap Generator

Make a scrolling row or column that snaps to each card.


Scroll snap keeps a card lined up after the user finishes scrolling. Mandatory always settles on a snap point. Proximity snaps only when the scroll is already close.

Frequently asked questions

Does this work on phones?

Yes. Modern mobile browsers honor scroll-snap on touch scrolling.

Why does the copied CSS use a class?

The rules are written for .scroller and .scroller > * so you can paste them onto your own markup.