<div class="gallery">
  <img src="https://treehouse-codepen.s3.amazonaws.com/snap-points/1.jpg" alt="">
  <img src="https://treehouse-codepen.s3.amazonaws.com/snap-points/2.jpg" alt="">
  <img src="https://treehouse-codepen.s3.amazonaws.com/snap-points/3.jpg" alt="">
  <img src="https://treehouse-codepen.s3.amazonaws.com/snap-points/4.jpg" alt="">
</div>
.gallery {
  margin: auto;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 0;
  width: 90%;
  height: 48vw;
	scroll-snap-type: mandatory;
  scroll-snap-points-y: repeat(100%);
  scroll-snap-destination: 50% 50%;
}

img {
	width: 100%;
  scroll-snap-coordinate: 50% 50%;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.