四组欢乐CSS3加载动画

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 四组欢乐CSS3加载动画 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图1:

四组欢乐CSS3加载动画

部分效果截图2:

四组欢乐CSS3加载动画

HTML代码(index.html):

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>四组欢乐CSS3加载动画 </title>
<style>
@keyframes move {
  from { transform: translate(0,50%); }
  to { transform: translate(0,850%); }
}

* {
  margin: 0;
  padding: 0;
}

body {
  min-width: 325px;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  align-content: flex-start;
  background: #2a2a2a;
}

figure {
  margin: 30px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  position: relative;
  background: #1c1c1c;
}

section {
  width: 10%;
  height: 100%;
  position: absolute;
  left: 45%;
}

section:nth-child(2) { transform: rotate(22.5deg);  }
section:nth-child(3) { transform: rotate(45deg);    }
section:nth-child(4) { transform: rotate(67.5deg);  }
section:nth-child(5) { transform: rotate(90deg);    }
section:nth-child(6) { transform: rotate(112.5deg); }
section:nth-child(7) { transform: rotate(135deg);   }
section:nth-child(8) { transform: rotate(157.5deg); }

figure div {
  height: 10%;
  border-radius: 50%;
  background: dodgerblue;
  animation: move 1s ease-in-out infinite alternate;
}

figure:nth-child(1) > section:nth-child(1) > div { animation-delay: -0.1875s; }
figure:nth-child(1) > section:nth-child(2) > div { animation-delay: -0.175s;  }
figure:nth-child(1) > section:nth-child(3) > div { animation-delay: -0.1625s; }
figure:nth-child(1) > section:nth-child(4) > div { animation-delay: -0.15s;   }
figure:nth-child(1) > section:nth-child(5) > div { animation-delay: -0.9375s; }
figure:nth-child(1) > section:nth-child(6) > div { animation-delay: -0.925s;  }
figure:nth-child(1) > section:nth-child(7) > div { animation-delay: -0.9125s; }
figure:nth-child(1) > section:nth-child(8) > div { animation-delay: -0.9s;    }

figure:nth-child(2) > section:nth-child(1) > div { animation-delay: -0.875s;  }
figure:nth-child(2) > section:nth-child(2) > div { animation-delay: -0.75s;   }
figure:nth-child(2) > section:nth-child(3) > div { animation-delay: -0.625s;  }
figure:nth-child(2) > section:nth-child(4) > div { animation-delay: -0.5s;    }
figure:nth-child(2) > section:nth-child(5) > div { animation-delay: -0.375s;  }
figure:nth-child(2) > section:nth-child(6) > div { animation-delay: -0.25s;   }
figure:nth-child(2) > section:nth-child(7) > div { animation-delay: -0.125s;  }

figure:nth-child(3) > section:nth-child(1) > div { animation-delay: -0.5s;    }
figure:nth-child(3) > section:nth-child(3) > div { animation-delay: -0.5s;    }
figure:nth-child(3) > section:nth-child(5) > div { animation-delay: -0.5s;    }
figure:nth-child(3) > section:nth-child(7) > div { animation-delay: -0.5s;    }

figure:nth-child(4) > section:nth-child(1) > div { animation-delay: -0.35s;   }
figure:nth-child(4) > section:nth-child(2) > div { animation-delay: -0.3s;    }
figure:nth-child(4) > section:nth-child(3) > div { animation-delay: -0.25s;   }
figure:nth-child(4) > section:nth-child(4) > div { animation-delay: -0.2s;    }
figure:nth-child(4) > section:nth-child(5) > div { animation-delay: -0.15s;   }
figure:nth-child(4) > section:nth-child(6) > div { animation-delay: -0.1s;    }
figure:nth-child(4) > section:nth-child(7) > div { animation-delay: -0.05s;   }
</style>

    <script src="js/prefixfree.min.js"></script>

</head>

<body>

  <figure>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
</figure>

<figure>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
</figure>

<figure>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
</figure>

<figure>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
  <section><div></div></section>
</figure>
</body>
</html>

CSS代码(style.css):

@keyframes move{from{transform:translate(0,50%);}
to{transform:translate(0,850%);}
}
*{margin:0;padding:0;}
body{min-width:325px;height:100vh;display:flex;flex-wrap:wrap;justify-content:space-around;align-items:center;align-content:flex-start;background:#2a2a2a;}
figure{margin:30px;width:250px;height:250px;border-radius:50%;position:relative;background:#1c1c1c;}
section{width:10%;height:100%;position:absolute;left:45%;}
section:nth-child(2){transform:rotate(22.5deg);}
section:nth-child(3){transform:rotate(45deg);}
section:nth-child(4){transform:rotate(67.5deg);}
section:nth-child(5){transform:rotate(90deg);}
section:nth-child(6){transform:rotate(112.5deg);}
section:nth-child(7){transform:rotate(135deg);}
section:nth-child(8){transform:rotate(157.5deg);}
div{height:10%;border-radius:50%;background:dodgerblue;animation:move 1s ease-in-out infinite alternate;}
figure:nth-child(1) > section:nth-child(1) > div{animation-delay:-0.1875s;}
figure:nth-child(1) > section:nth-child(2) > div{animation-delay:-0.175s;}
figure:nth-child(1) > section:nth-child(3) > div{animation-delay:-0.1625s;}
figure:nth-child(1) > section:nth-child(4) > div{animation-delay:-0.15s;}
figure:nth-child(1) > section:nth-child(5) > div{animation-delay:-0.9375s;}
figure:nth-child(1) > section:nth-child(6) > div{animation-delay:-0.925s;}
figure:nth-child(1) > section:nth-child(7) > div{animation-delay:-0.9125s;}
figure:nth-child(1) > section:nth-child(8) > div{animation-delay:-0.9s;}
figure:nth-child(2) > section:nth-child(1) > div{animation-delay:-0.875s;}
figure:nth-child(2) > section:nth-child(2) > div{animation-delay:-0.75s;}
figure:nth-child(2) > section:nth-child(3) > div{animation-delay:-0.625s;}
figure:nth-child(2) > section:nth-child(4) > div{animation-delay:-0.5s;}
figure:nth-child(2) > section:nth-child(5) > div{animation-delay:-0.375s;}
figure:nth-child(2) > section:nth-child(6) > div{animation-delay:-0.25s;}
figure:nth-child(2) > section:nth-child(7) > div{animation-delay:-0.125s;}
figure:nth-child(3) > section:nth-child(1) > div{animation-delay:-0.5s;}
figure:nth-child(3) > section:nth-child(3) > div{animation-delay:-0.5s;}
figure:nth-child(3) > section:nth-child(5) > div{animation-delay:-0.5s;}
figure:nth-child(3) > section:nth-child(7) > div{animation-delay:-0.5s;}
figure:nth-child(4) > section:nth-child(1) > div{animation-delay:-0.35s;}
figure:nth-child(4) > section:nth-child(2) > div{animation-delay:-0.3s;}
figure:nth-child(4) > section:nth-child(3) > div{animation-delay:-0.25s;}
figure:nth-child(4) > section:nth-child(4) > div{animation-delay:-0.2s;}
figure:nth-child(4) > section:nth-child(5) > div{animation-delay:-0.15s;}
figure:nth-child(4) > section:nth-child(6) > div{animation-delay:-0.1s;}
figure:nth-child(4) > section:nth-child(7) > div{animation-delay:-0.05s;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
4.44 KB
Html CSS3特效
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章