@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 20));
  }
}

.slider {
  background: white;
  height: 250px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider::before,
.slider::after {
  /* background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  ); */
  content: "";
  height: 250px;
  position: absolute;
  width: 250px;
  z-index: 2;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
}

.slider .slide-track {
  animation: scroll 40s linear infinite;
  display: flex;
  width: calc(250px * 40);
  background-color: transparent;
}

.slider .slide {
  height: 250px;
  width: 250px;
  background-color: transparent;
}

.slide {
  margin-right: 60px;
  background-color: #f2f1f1;
}

.slide img {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  min-width: 250px;
  min-height: 250px;
  background-color: #f2f1f1;
  padding: 20px;
}