Answers for "css scroll snap vertical"

CSS
2

how to snap the scroll is css

.parent-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

.child-containers {
  height: 100vh;
  scroll-snap-align: start;
}
Posted by: Guest on July-08-2021
3

css scroll snap

.container {
  scroll-snap-type: mandatory; 
}

.child {
  scroll-snap-align: start;
}

/* Guide: https://css-tricks.com/practical-css-scroll-snapping/ */
Posted by: Guest on July-03-2020

Code answers related to "css scroll snap vertical"

Browse Popular Code Answers by Language