.scroller-custom {
  max-width: 900px;
}

.scroller__inner {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroller-custom[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent

  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller-custom[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 60s)
    var(--_animation-direction, forwards) linear infinite;
}

.scroller-custom[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller-custom[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller-custom[data-speed="fast"] {
  --_animation-duration: 13s;
}

.scroller-custom[data-speed="slow"] {
  --_animation-duration: 30s;
}

@keyframes scroll {
  to {
    transform: translate(calc(-189%));
  }
}
