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

代码如下:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>css3 loading等待加载代码 - 何问起</title>
  6.  
  7. <style>
  8. @keyframes move {
  9. from {
  10. transform: translate(0,50%);
  11. }
  12.  
  13. to {
  14. transform: translate(0,850%);
  15. }
  16. }
  17.  
  18. * {
  19. margin: 0;
  20. padding: 0;
  21. }
  22.  
  23. body {
  24. min-width: 325px;
  25. height: 100vh;
  26. display: flex;
  27. flex-wrap: wrap;
  28. justify-content: space-around;
  29. align-items: center;
  30. align-content: flex-start;
  31. background: #2a2a2a;
  32. }
  33.  
  34. figure {
  35. margin: 30px;
  36. width: 250px;
  37. height: 250px;
  38. border-radius: 50%;
  39. position: relative;
  40. background: #1c1c1c;
  41. }
  42.  
  43. section {
  44. width: 10%;
  45. height: 100%;
  46. position: absolute;
  47. left: 45%;
  48. }
  49.  
  50. section:nth-child(2) {
  51. transform: rotate(22.5deg);
  52. }
  53.  
  54. section:nth-child(3) {
  55. transform: rotate(45deg);
  56. }
  57.  
  58. section:nth-child(4) {
  59. transform: rotate(67.5deg);
  60. }
  61.  
  62. section:nth-child(5) {
  63. transform: rotate(90deg);
  64. }
  65.  
  66. section:nth-child(6) {
  67. transform: rotate(112.5deg);
  68. }
  69.  
  70. section:nth-child(7) {
  71. transform: rotate(135deg);
  72. }
  73.  
  74. section:nth-child(8) {
  75. transform: rotate(157.5deg);
  76. }
  77.  
  78. figure div {
  79. height: 10%;
  80. border-radius: 50%;
  81. background: dodgerblue;
  82. animation: move 1s ease-in-out infinite alternate;
  83. }
  84.  
  85. figure:nth-child(1) > section:nth-child(1) > div {
  86. animation-delay: -0.1875s;
  87. }
  88.  
  89. figure:nth-child(1) > section:nth-child(2) > div {
  90. animation-delay: -0.175s;
  91. }
  92.  
  93. figure:nth-child(1) > section:nth-child(3) > div {
  94. animation-delay: -0.1625s;
  95. }
  96.  
  97. figure:nth-child(1) > section:nth-child(4) > div {
  98. animation-delay: -0.15s;
  99. }
  100.  
  101. figure:nth-child(1) > section:nth-child(5) > div {
  102. animation-delay: -0.9375s;
  103. }
  104.  
  105. figure:nth-child(1) > section:nth-child(6) > div {
  106. animation-delay: -0.925s;
  107. }
  108.  
  109. figure:nth-child(1) > section:nth-child(7) > div {
  110. animation-delay: -0.9125s;
  111. }
  112.  
  113. figure:nth-child(1) > section:nth-child(8) > div {
  114. animation-delay: -0.9s;
  115. }
  116.  
  117. figure:nth-child(2) > section:nth-child(1) > div {
  118. animation-delay: -0.875s;
  119. }
  120.  
  121. figure:nth-child(2) > section:nth-child(2) > div {
  122. animation-delay: -0.75s;
  123. }
  124.  
  125. figure:nth-child(2) > section:nth-child(3) > div {
  126. animation-delay: -0.625s;
  127. }
  128.  
  129. figure:nth-child(2) > section:nth-child(4) > div {
  130. animation-delay: -0.5s;
  131. }
  132.  
  133. figure:nth-child(2) > section:nth-child(5) > div {
  134. animation-delay: -0.375s;
  135. }
  136.  
  137. figure:nth-child(2) > section:nth-child(6) > div {
  138. animation-delay: -0.25s;
  139. }
  140.  
  141. figure:nth-child(2) > section:nth-child(7) > div {
  142. animation-delay: -0.125s;
  143. }
  144.  
  145. figure:nth-child(3) > section:nth-child(1) > div {
  146. animation-delay: -0.5s;
  147. }
  148.  
  149. figure:nth-child(3) > section:nth-child(3) > div {
  150. animation-delay: -0.5s;
  151. }
  152.  
  153. figure:nth-child(3) > section:nth-child(5) > div {
  154. animation-delay: -0.5s;
  155. }
  156.  
  157. figure:nth-child(3) > section:nth-child(7) > div {
  158. animation-delay: -0.5s;
  159. }
  160.  
  161. figure:nth-child(4) > section:nth-child(1) > div {
  162. animation-delay: -0.35s;
  163. }
  164.  
  165. figure:nth-child(4) > section:nth-child(2) > div {
  166. animation-delay: -0.3s;
  167. }
  168.  
  169. figure:nth-child(4) > section:nth-child(3) > div {
  170. animation-delay: -0.25s;
  171. }
  172.  
  173. figure:nth-child(4) > section:nth-child(4) > div {
  174. animation-delay: -0.2s;
  175. }
  176.  
  177. figure:nth-child(4) > section:nth-child(5) > div {
  178. animation-delay: -0.15s;
  179. }
  180.  
  181. figure:nth-child(4) > section:nth-child(6) > div {
  182. animation-delay: -0.1s;
  183. }
  184.  
  185. figure:nth-child(4) > section:nth-child(7) > div {
  186. animation-delay: -0.05s;
  187. }
  188. </style>
  189.  
  190. <script src="js/prefixfree.min.js"></script>
  191.  
  192. </head>
  193.  
  194. <body>
  195.  
  196. <figure>
  197. <section><div></div></section>
  198. <section><div></div></section>
  199. <section><div></div></section>
  200. <section><div></div></section>
  201. <section><div></div></section>
  202. <section><div></div></section>
  203. <section><div></div></section>
  204. <section><div></div></section>
  205. </figure>
  206.  
  207. <figure>
  208. <section><div></div></section>
  209. <section><div></div></section>
  210. <section><div></div></section>
  211. <section><div></div></section>
  212. <section><div></div></section>
  213. <section><div></div></section>
  214. <section><div></div></section>
  215. <section><div></div></section>
  216. </figure>
  217.  
  218. <figure>
  219. <section><div></div></section>
  220. <section><div></div></section>
  221. <section><div></div></section>
  222. <section><div></div></section>
  223. <section><div></div></section>
  224. <section><div></div></section>
  225. <section><div></div></section>
  226. <section><div></div></section>
  227. </figure>
  228.  
  229. <figure>
  230. <section><div></div></section>
  231. <section><div></div></section>
  232. <section><div></div></section>
  233. <section><div></div></section>
  234. <section><div></div></section>
  235. <section><div></div></section>
  236. <section><div></div></section>
  237. <section><div></div></section>
  238. </figure>
  239.  
  240. <div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
  241. <p>适用浏览器:360、FireFox、Chrome、Opera、傲游、搜狗、世界之窗. 不支持Safari、IE8及以下浏览器。</p>
  242. <p>来源:<a href="http://hovertree.com/" target="_blank">何问起</a></p>
  243. </div>
  244. </body>
  245. </html>

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

CSS3实现Loading动画特效的更多相关文章

  1. 纯CSS3文字Loading动画特效

    纯CSS3文字Loading动画特效是一款个性的loading文字加载动画. 在线演示本地下载

  2. 纯css3 加载loading动画特效

    最近项目中要实现当页面还没有加载完给用户提示正在加载的loading,本来是想做个图片提示的,但是图片如果放大电脑的分辨率就会感觉到很虚,体验效果很不好.于是就采用css3+js实现这个loading ...

  3. 分享web前端七款HTML5 Loading动画特效集锦

    以前我们大部分的Loading动画都是利用gif图片实现的,这种图片实现Loading动画的方法虽然也很不错,但是作为HTML5开发者来说,如果能利用HTML5和CSS3实现这些超酷的Loading动 ...

  4. 7 款华丽的 HTML5 Loading 动画特效

    我们在进行大数据的传输或者复杂操作的等待时,最好能有一个Loading等待的小动画提示用户.本文将为大家分享一些超华丽的基于HTML5的Loading加载动画特效,希望你会喜欢. 1.HTML5 Ca ...

  5. 6种炫酷的CSS3按钮边框动画特效

    6种炫酷的CSS3按钮边框动画特效Button border animate 用鼠标滑过下面的按钮看看效果! Draw Draw Meet Center Spin Spin Circle Spin T ...

  6. 9款超绚丽的HTML5/CSS3应用和动画特效

    1.CSS3飘带状3D菜单 菜单带小图标 这次我们要来分享一款很特别的CSS3菜单,菜单的外观是飘带状的,并且每一个菜单项有一个精美的小图标,鼠标滑过菜单项时,菜单项就会向上凸起,像是飘带飘动一样,形 ...

  7. 纯CSS3创意loading文字特效

    快速使用Romanysoft LAB的技术实现 HTML 开发Mac OS App,并销售到苹果应用商店中.   <HTML开发Mac OS App 视频教程> 土豆网同步更新:http: ...

  8. 基于HTML5/CSS3图片网格动画特效

    现在HTML5技术可以让网页上的图片变得非常神奇,各种各样的HTML5图片动画特效让你眼花缭乱.今天要分享的这款HTML5图片网格动画特效就非常炫酷.图片缩略图按网格的布局一行行排列,你只需点击按钮即 ...

  9. CSS3扁平化Loading动画特效

    效果预览:http://hovertree.com/texiao/css3/42/ 代码如下: <!doctype html> <html> <head> < ...

随机推荐

  1. Python----unittest discover()方法与执行顺序

    一.Unittest discover()可以根据不同的功能创建不同的测试文件,甚至是不同的测试目录,测试文件中还可以将不同的小功能划分为不同的测试类,在类下编写测试用例,让整体结构更加清晰一般是通过 ...

  2. IIS环境配置和项目部署

    本人实际工作项目中IIS部署,亲测可用~~ 具体步骤: 1.打开控制面板 2.打开程序和功能 3.打开或关闭Windous功能 然后勾选相关内容: 4.添加应用程序 先打开iis管理器页面(控制面板— ...

  3. [cf contest697] D - Puzzles

    [cf contest697] D - Puzzles time limit per test 1 second memory limit per test 256 megabytes input s ...

  4. 在浏览器端获取文件的MD5值

    前几天接到一个奇怪的需求,要在web页面中计算文件的md5值,还好这个项目是只需兼容现代浏览器的,不然要坑死了. 其实对文件进行md5,对于后端来说是及其简单的.比如使用Node.js,只要下面几行代 ...

  5. Monkey

    什么是 Monkey Monkey 是一个 Android 自动化测试小工具.主要用于Android 的压力测试, 主要目的就是为了测试app 是否会Crash. Monkey 特点 顾名思义,Mon ...

  6. Daily record-October

    October 11. Hope is a good thing, maybe the best of things, and no good thing ever dies. 希望是美好的,也许是人 ...

  7. selenium自动化实例: 多层框架中关于iframe的定位,以及select下拉框选择

    对于一个自动化的初学者来说会很常见的遇到元素明明存在却始终定位不到, 从而导致脚本报错,当然定位不到元素的原因很多, 其中一种就是多层框架iframe导致的 下方截图示意: 下方为写脚本时候的示例并其 ...

  8. 实训任务02:Hadoop基础操作

    实训任务02:Hadoop基础操作 班级            学号               姓名 实训1:创建测试文件上传HDFS,并显示内容 需求说明: 在本地计算机上创建测试文件helloH ...

  9. 汉明码(Hamming)编码与纠错原理

    一 汉明码的编解码说明 (一)编码 Hamming(12,8) N=12,表示编码后的比特长度 K=8,待编码数据的比特长度 R=N-K=4,校验位的比特长度 D=3 汉明距离:相邻行之间不同比特数据 ...

  10. centos7 下zookeeper 部署 单机多实例模式

    centos7 下zookeeper 部署 本文参考https://www.linuxidc.com/Linux/2016-09/135052.htm 1.创建/usr/local/zookeeper ...