限时优惠活动
亲爱的苦力吧用户,我们为了回馈新老用户一直以来的鼎力支持,即日起(2025-02-06至2025-03-06)凡是购买苦力吧VIP/充值K币的新老用户,都直接可获得买一送一的优惠馈赠。例如:购买一个月的VIP会员可直接获得两个月的VIP会员;充值100K币可直接获得200K币,以此类推!有任何疑问可联系在线客服,感谢各位用户对苦力吧素材的信任与厚爱,我们将一如既往的给大家上新更多优质的素材源码,祝大家开工大吉、工作顺利、心想事成。

CSS3创建的Circle Loader动画特效代码

所属分类: 网页特效-动画效果    2023-12-18 11:22:41

CSS3创建的Circle Loader动画特效代码 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

CSS3创建的Circle Loader动画特效代码(共2个文件)

    • index.html

使用方法

@property --nose {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: true;
}

@property --tail {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: true;
}

:root {
  --size: 25;
}
.cd__main{
   background: hsl(0, 0%, 8%) !important;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: hsl(0, 0%, 8%);
}

.loader {
  height: calc(var(--size) * 1vmin);
  width: calc(var(--size) * 1vmin);
  position: relative;
  border-style: solid;
  border-width: 5vmin;
  border-color: transparent;
  border-radius: 50%;
  -webkit-mask: conic-gradient(
    from 45deg,
    transparent 0 var(--tail),
    white 0 var(--nose),
    transparent 0
  );
          mask: conic-gradient(
    from 45deg,
    transparent 0 var(--tail),
    white 0 var(--nose),
    transparent 0
  );
  -webkit-animation: load 2.5s both infinite ease-in-out, spin 3.25s infinite linear;
          animation: load 2.5s both infinite ease-in-out, spin 3.25s infinite linear;
}

.loader::after {
  content: "";
  position: absolute;
  inset: -5vmin;
  background: conic-gradient(
      from 95deg in hsl longer hue,
      hsl(240deg 100% 75%),
      hsl(240deg 100% 75%)
    ) -5vmin -5vmin / calc(100% + 10vmin) calc(100% + 10vmin);
  background: goldenrod;
  border-style: solid;
  border-width: 5vmin;
  border-color: transparent;
  border-radius: 50%;
  -webkit-mask: linear-gradient(white 0 0) padding-box,
    linear-gradient(white 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(white 0 0) padding-box exclude,
    linear-gradient(white 0 0);
}

@-webkit-keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes load {
  0% {
    --tail: 0%;
    --nose: 0%;
  }
  40%,
  60% {
    --nose: 100%;
    --tail: 0%;
  }
  100% {
    --nose: 100%;
    --tail: 100%;
  }
}

@keyframes load {
  0% {
    --tail: 0%;
    --nose: 0%;
  }
  40%,
  60% {
    --nose: 100%;
    --tail: 0%;
  }
  100% {
    --nose: 100%;
    --tail: 100%;
  }
}

@supports (background: conic-gradient(from 95deg in hsl longer hue, red, red)) {
  .loader::after {
    background: conic-gradient(
        from 95deg in hsl longer hue,
        hsl(240deg 100% 75%),
        hsl(240deg 100% 75%)
      ) -5vmin -5vmin / calc(100% + 10vmin) calc(100% + 10vmin);
  }
}

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 动画效果

html5 canvas收益率曲线进度条动画效果

画布曲线图动画特效,效果很nice,大家可以试试!
  动画效果
 5305  0

jquery表单搜索框打字动画占位符插件

一款可定义多组文字的搜索默认标签,自动呈现打字动画特效,很实用!
  动画效果
 3302  0

CSS创建的无限循环的动画边框特效代码

一款DIV边框循环动画特效,DIV边框无限循环,类似于走马灯效果。
  动画效果
 9358  0

jquery跟随鼠标转动的眼睛动画特效

一款模拟人类眼睛转动眨眼动画特效代码,眼珠跟随鼠标轨迹转动,非常有趣!
  动画效果
 9340  0

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论