Skip to content

Instantly share code, notes, and snippets.

@ddanielsantos
Created March 16, 2022 21:51
Show Gist options
  • Save ddanielsantos/59a09ac908ce04f5afc4b374e6783dc7 to your computer and use it in GitHub Desktop.
Save ddanielsantos/59a09ac908ce04f5afc4b374e6783dc7 to your computer and use it in GitHub Desktop.
Full page scroll effect only with CSS
.parent {
scroll-snap-type: y mandatory;
overflow-y: scroll;
height: 100vh;
}
.child {
height: 100vh;
scroll-snap-align: start;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment