查看效果:
http://hovertree.com/texiao/css3/43/

代码如下:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>css3 loading等待加载代码 - 何问起</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> <div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器:360、FireFox、Chrome、Opera、傲游、搜狗、世界之窗. 不支持Safari、IE8及以下浏览器。</p>
<p>来源:<a href="http://hovertree.com/" target="_blank">何问起</a></p>
</div>
</body>
</html>

web前端特效:http://www.cnblogs.com/jihua/p/webfront.html

最新文章

  1. CSS基础篇之了解CSS和它的基本属性
  2. 在不动用sp_configure的情况下,如何 =》去掉列的自增长,并保留原数据
  3. WPF自定义控件与样式(5)-Calendar/DatePicker日期控件自定义样式及扩展
  4. javascript 函数声明和函数表达式的区别(学习笔记)
  5. Eclipse安装配置以及java项目和类的创建
  6. 用poi框架进行批量导入导出实例
  7. vs2010的快捷键
  8. uva 11324
  9. 内核源码分析之linux内核栈(基于3.16-rc4)
  10. Dorado事件的参数
  11. REDIS主从配置及切换
  12. MyEclipse破解方法
  13. iOS 8 新特性
  14. Linxu指令--crond
  15. CountDownLatch 使用说明
  16. 机器学习之决策树一-ID3原理与代码实现
  17. 通过sql查找指定字段存在哪些表中
  18. orcal - 添加用户、授权
  19. js设计模式(七)---模板方法模式
  20. Forth 词典和词汇

热门文章

  1. python 爬虫新解
  2. leetcode71
  3. round函数解决oracle报错&quot;OCI-22053: 溢出错误&quot;的问题
  4. Gson反序列化Map,整型自动转换为浮点型
  5. (05) SpringBoot开发RESTFull?
  6. 【性能测试】LoadRunner11安装(包含破解、汉化)
  7. redis持久化数据的机制——转发
  8. Django_简单的数据库交互案例
  9. 初学者如何迅速学习web前端开发
  10. 如何验证代理ip的正确性