Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Scroll Snap Points
.container {
width: 500px;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
/* Set up points to which scrolling will snap */
-ms-scroll-snap-points-x: snapInterval(0px, 100%);
/* Require that scrolling always end at a snap point */
-ms-scroll-snap-type: mandatory;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.