<div class="container">
  <section class="container__section">Section1</section>
  <section class="container__section">
    <div class="fixed-contents">
      <img src="https://placeimg.com/800/600/animals">
      <p>Section2</p>
    </div>
  </section>
  <section class="container__section">
    <div class="fixed-contents">
      <img src="https://placeimg.com/800/600/architecture">
      <p>Section3</p>
    </div>
  </section>
  <section class="container__section">Section4</section>
</div>
.container {
  overflow: auto;
  height: 100vh;
  scroll-snap-type: y mandatory;

  .container__section {
    scroll-snap-align: start;
    height: 100vh;
    display: grid;
    place-items: center;
    font-size: 5vw;
    &:nth-child(1) {
      background-color: rgba(#ff0000, 0.2);
    }
    &:nth-child(2) {
      clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
      background-color: rgba(#00ff00, 0.2);
    }
    &:nth-child(3) {
      clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
      background-color: rgba(#0000ff, 0.2);
    }
    &:nth-child(4) {
      background-color: rgba(#00ffff, 0.2);
    }
  }
}

.fixed-contents {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  > img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    pointer-events: none;
  }
  > p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
  }
}
View Compiled
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.