﻿
.scroll-container {
  overflow-x: auto;
  /* 允许水平滚动 */
  white-space: nowrap;
  /* 保持内容在一行 */
  /* 可以根据需要设置容器的宽度 */
  width: 100%;
}

.scroll-wrap {
  margin: 20px 0;
  animation: scroll-left 20s linear infinite;
  white-space: nowrap;
}
.scroll-wrap .scroll-box {
  display: inline-flex;
  margin: 0 10px;
  gap: 20px;
}
.scroll-wrap .s-item {
  position: relative;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 10px;
  display: inline-block;
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 18px;
  font-weight: bold;
}
.scroll-wrap .s-item img {
  width: 50px;
  height: 50px;
}

.scroll-left {
  animation: scroll-left 20s linear infinite;
}

.scroll-right {
  animation: scroll-right 20s linear infinite;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
    /* 根据内容宽度调整 */
  }
}
@keyframes scroll-right {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
    /* 根据内容宽度调整 */
  }
}

/*# sourceMappingURL=scroll.css.map */
