Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iMagdy/c218b4c256b51c735e792b85d9497e0a to your computer and use it in GitHub Desktop.
Save iMagdy/c218b4c256b51c735e792b85d9497e0a to your computer and use it in GitHub Desktop.
.container {
scroll-snap-type: y mandatory; /* for vertical scrolling you can use x for horizontal */
}
.child {
scroll-snap-align: start; /* or center or end */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment