<div class="container">
  <img src="https://picsum.photos/500/300?random=1" alt="">
  <img src="https://picsum.photos/500/300?random=2" alt="">
  <img src="https://picsum.photos/500/300?random=3" alt="">
  <img src="https://picsum.photos/500/300?random=4" alt="">
  <img src="https://picsum.photos/500/300?random=5" alt="">
  <img src="https://picsum.photos/500/300?random=6" alt="">
  <img src="https://picsum.photos/500/300?random=7" alt="">
</div>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Exo", Arial, sans-serif;
  background-color: #f7f7f7;

  gap: 20px;
}

.container {
  display: flex;
  gap: 20px;
  box-shadow: 0 3px 10px 0 rgba(0 0 0 / 0.1);
  border-radius: 5px;
  padding: 20px;
  width: 640px;
  position: relative;
  scroll-behavior: smooth;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding: 20px;
}

img {
  border-radius: 4px;
  max-height: 150px;
  width: auto;

  scroll-snap-align: start;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.