<div class="container">
  <div class="section">
    <h1>Section 1</h1>
  </div>
  <div class="section">
    <h1>Section 2</h1>
  </div>
  <div class="section">
    <h1>Section 3</h1>
  </div>
  <div class="section">
    <h1>Section 4</h1>
  </div>
  <div class="section">
    <h1>Section 5</h1>
  </div>
  <div class="section">
    <h1>Section 6</h1>
  </div>
</div>
.container {
  height: 100vh;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

.section {
  height: 100%;
  scroll-snap-align: start;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.