<div class="container">
  <div class="scroll-wrapper">
    <div class="orb">1</div>
    <div class="orb red">2</div>
    <div class="orb dark">3</div>
    <div class="orb blue">4</div>
    <div class="orb orange">5</div>
    <div class="orb purple">6</div>
    <div class="orb green">7</div>
  </div>
  <div class="scroll-wrapper">
    <div class="orb">1</div>
    <div class="orb red">2</div>
    <div class="orb dark">3</div>
    <div class="orb blue">4</div>
    <div class="orb orange">5</div>
    <div class="orb purple">6</div>
    <div class="orb green">7</div>
  </div>
</div>
body {
  margin: 0;
  font-family: sans-serif;
  color: #fff;
  background-color: #efefef;
  overflow: hidden;
  margin: 60px;
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 16px;
  background-color: #ffffff;
  position: relative;
  display: flex;
  overflow: hidden;
}

.container::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(
    to right,
    #fff,
    rgba(255, 255, 255, 0) 80px,
    rgba(255, 255, 255, 0) calc(100% - 80px),
    #fff
  );
}

.orb {
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  background: #999;
  display: inline-block;
  margin: 0 30px;
}

.orb:hover {
  transform: scale(1.2);
  cursor: pointer;
}

.red {
  background: red;
}
.dark {
  background: #666666;
}
.blue {
  background: blue;
}
.orange {
  background: orange;
}
.purple {
  background: purple;
}
.green {
  background: green;
}

/* Animation Class */
.scroll-wrapper {
  display: flex;
  -webkit-animation: marquee 20s linear infinite;
  animation: marquee 20s linear infinite;
}

@-webkit-keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.