پیش‌نمایش زنده
کد HTML
<div class="loader">
  <div class="box-1"></div>
  <div class="box-2"></div>
  <div class="box-3"></div>
</div>
کد CSS
.loader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.box-1,
.box-2,
.box-3 {
  width: 1px;
  height: 115px;
  border: 1px solid #e9e9e9;
  background-color: transparent;
  box-sizing: border-box;
}

.box-1 {
  animation: box1animation 3s forwards ease-in-out infinite;
}

@keyframes box1animation {
  0% {
    width: 1px;
  }

  16.7% {
    width: 60px;
  }

  33.3% {
    width: 60px;
  }

  50% {
    width: 1px;
  }

  100% {
    width: 1px;
  }
}

.box-2 {
  animation: box2animation 3s forwards ease-in-out infinite;
}

@keyframes box2animation {
  0% {
    width: 1px;
  }

  33.3% {
    width: 1px;
  }

  50% {
    width: 60px;
  }

  66.6% {
    width: 60px;
  }

  83.3% {
    width: 1px;
  }

  100% {
    width: 1px;
  }
}

.box-3 {
  animation: box3animation 3s forwards ease-in-out infinite;
}

@keyframes box3animation {
  0% {
    width: 60px;
  }

  16.7% {
    width: 1px;
  }

  66.6% {
    width: 1px;
  }

  83.3% {
    width: 60px;
  }

  100% {
    width: 60px;
  }
}
نوع: loader
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06