پیش‌نمایش زنده
کد HTML
<div class="loading">
  <svg width="64px" height="48px">
    <polyline
      style="stroke: blue; fill: none;"
      points="0.157 23.954, 14 23.954, 21.843 48, 43 0, 50 24, 64 24"
      id="back"
    ></polyline>
    <polyline
      style="stroke: red; fill: none;"
      points="0.157 23.954, 14 23.954, 21.843 48, 43 0, 50 24, 64 24"
      id="front"
    ></polyline>
    <polyline
      style="stroke: green; fill: none;"
      points="0.157 23.954, 14 23.954, 21.843 48, 43 0, 50 24, 64 24"
      id="front2"
    ></polyline>
  </svg>
</div>
کد CSS
.loading svg polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loading svg polyline#back {
  fill: none;
  stroke: #ff4d5033;
}

.loading svg polyline#front {
  fill: none;
  stroke: #00ffff;
  stroke-dasharray: 48, 144;
  stroke-dashoffset: 192;
  animation: dash_682 2s linear infinite;
  animation-delay: 0s;
}

.loading svg polyline#front2 {
  fill: none;
  stroke: #00ffff;
  stroke-dasharray: 48, 144;
  stroke-dashoffset: 192;
  animation: dash_682 2s linear infinite;
  animation-delay: 1s;
}

@keyframes dash_682 {
  72.5% {
    opacity: 0;
  }

  to {
    stroke-dashoffset: 0;
  }
}
نوع: loader
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06