پیش‌نمایش زنده
کد HTML
<div class="loader"></div>
کد CSS
.loader {
  width: 160px;
  height: 80px;
  border: 4px solid #00F45B;
  border-right-color: transparent;
  padding: 6px;
  background: repeating-linear-gradient(90deg,#00F45B 0 20px,#0000 0 30px) 
    left/0% 100% no-repeat content-box content-box;
  position: relative;
  animation: p5 2s infinite steps(6);
}

.loader::before {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 100%;
  width: 20px;
  background: linear-gradient(
        #0000   calc(50% - 14px),#00F45B 0 calc(50% - 10px),
        #0000 0 calc(50% + 10px),#00F45B 0 calc(50% + 14px),#0000 0) left /100% 100%,
    linear-gradient(#00F45B calc(50% - 10px),#0000        0 calc(50% + 10px),#00F45B 0) left /4px 100%,
    linear-gradient(#0000        calc(50% - 10px),#00F45B 0 calc(50% + 10px),#0000        0) right/4px 100%;
  background-repeat: no-repeat;
}

@keyframes p5 {
  100% {
    background-size: 120% 100%
  }
}
  
نوع: loader
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06