Answers for "return displayed item css snap scrolling"

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

Browse Popular Code Answers by Language