motionsites中文站 / 加载动画 · Spotty Sloth
加载动画 · Spotty Sloth
aadmin2026-09-19 发布组件0 阅读

加载动画 · Spotty Sloth

类型:组件 · 分类:加载动画 · 收录:2026-09-19 · 源码:会员可见

[hidecontent type="vip1"]

  <div class="loader"></div>

<style>
/* From Uiverse.io by csemszepp - Source: https://codepen.io/Sanmi-Akinwunmi/pen/VwqjXKg - Tags: simple, animation, loader */
.loader {
  width: 50px;
  aspect-ratio: 1;
  display: flex;
  color: orange;
  background: linear-gradient(currentColor 0 0) right / 51% 100%,
    linear-gradient(currentColor 0 0) bottom / 100% 51%;
  background-repeat: no-repeat;
  animation: l16-0 2s infinite linear 0.25s;
}

.loader::before {
  content: "";
  width: 50%;
  height: 50%;
  background: currentColor;
  animation: l16-1 0.5s infinite linear;
}

@keyframes l16-0 {
  0%,
  12.49% {
    transform: rotate(0deg);
  }

  12.5%,
  37.49% {
    transform: rotate(90deg);
  }

  37.5%,
  62.49% {
    transform: rotate(180deg);
  }

  62.5%,
  87.49% {
    transform: rotate(270deg);
  }

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

@keyframes l16-1 {
  0% {
    transform: perspective(80px) rotate3d(-1, -1, 0, 0);
  }

  80%,
  100% {
    transform: perspective(80px) rotate3d(-1, -1, 0, -180deg);
  }
}

</style>
[/hidecontent]
← 返回首页