پیش‌نمایش زنده
کد HTML
<div class="loader">
  <div class="loader-inner"></div>
</div>
کد CSS
.loader {
  height: 60px;
  width: 60px;
  position: relative;
  animation: loaderAnimation 1.5s infinite linear;
}

.loader-inner {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  background-color: #3053c7;
  border-radius: 50%;
  animation: innerAnimation 1s infinite ease-in-out;
}

@keyframes loaderAnimation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes innerAnimation {
  0% {
    width: 0;
    opacity: 0;
  }

  50% {
    width: 100%;
    opacity: 1;
  }

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