Chinaunix首页 | 论坛 | 博客
  • 博客访问: 486845
  • 博文数量: 226
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2111
  • 用 户 组: 普通用户
  • 注册时间: 2014-06-20 09:02
个人简介

web web web

文章分类

全部博文(226)

文章存档

2020年(2)

2019年(1)

2018年(3)

2017年(26)

2016年(57)

2015年(60)

2014年(77)

我的朋友

分类: Web开发

2015-04-07 12:16:07


  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.  
  6. <style type="text/css">
  7.  #cc{
  8.  text-align:center;
  9.  margin:0 auto;
  10.  width:400px;
  11.  height:100px;
  12.  

  13.  }
  14.  
  15. #bb{
  16.  position: absolute;
  17.  width:400px;
  18.  height:200px;
  19.  left:50%;
  20.  top:50%;
  21.  margin-left:-200px;
  22.  margin-top:-100px;
  23.  
  24. }
  25. #tip{
  26.  position: absolute;
  27.  left:50%;
  28.  top:50%;
  29.  margin-left:-100px;
  30.  margin-top:-200px;
  31.  
  32. }

  33. .spinner {
  34.   margin: 20px auto;
  35.   width: 40px;
  36.   height: 40px;
  37.   position: relative;

  38. }
  39.  
  40. .container1 > div, .container2 > div, .container3 > div {
  41.   width: 12px;
  42.   height: 12px;
  43.   background-color: #fff;
  44.  
  45.   border-radius: 100%;
  46.   position: absolute;
  47.   -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
  48.   animation: bouncedelay 1.2s infinite ease-in-out;
  49.   -webkit-animation-fill-mode: both;
  50.   animation-fill-mode: both;
  51. }
  52.  
  53. .spinner .spinner-container {
  54.   position: absolute;
  55.   width: 100%;
  56.   height: 100%;
  57. }
  58.  
  59. .container2 {
  60.   -webkit-transform: rotateZ(45deg);
  61.   transform: rotateZ(45deg);
  62. }
  63.  
  64. .container3 {
  65.   -webkit-transform: rotateZ(90deg);
  66.   transform: rotateZ(90deg);
  67. }
  68.  
  69. .circle1 { top: 0; left: 0; }
  70. .circle2 { top: 0; right: 0; }
  71. .circle3 { right: 0; bottom: 0; }
  72. .circle4 { left: 0; bottom: 0; }
  73.  
  74. .container2 .circle1 {
  75.   -webkit-animation-delay: -1.1s;
  76.   animation-delay: -1.1s;
  77. }
  78.  
  79. .container3 .circle1 {
  80.   -webkit-animation-delay: -1.0s;
  81.   animation-delay: -1.0s;
  82. }
  83.  
  84. .container1 .circle2 {
  85.   -webkit-animation-delay: -0.9s;
  86.   animation-delay: -0.9s;
  87. }
  88.  
  89. .container2 .circle2 {
  90.   -webkit-animation-delay: -0.8s;
  91.   animation-delay: -0.8s;
  92. }
  93.  
  94. .container3 .circle2 {
  95.   -webkit-animation-delay: -0.7s;
  96.   animation-delay: -0.7s;
  97. }
  98.  
  99. .container1 .circle3 {
  100.   -webkit-animation-delay: -0.6s;
  101.   animation-delay: -0.6s;
  102. }
  103.  
  104. .container2 .circle3 {
  105.   -webkit-animation-delay: -0.5s;
  106.   animation-delay: -0.5s;
  107. }
  108.  
  109. .container3 .circle3 {
  110.   -webkit-animation-delay: -0.4s;
  111.   animation-delay: -0.4s;
  112. }
  113.  
  114. .container1 .circle4 {
  115.   -webkit-animation-delay: -0.3s;
  116.   animation-delay: -0.3s;
  117. }
  118.  
  119. .container2 .circle4 {
  120.   -webkit-animation-delay: -0.2s;
  121.   animation-delay: -0.2s;
  122. }
  123.  
  124. .container3 .circle4 {
  125.   -webkit-animation-delay: -0.1s;
  126.   animation-delay: -0.1s;
  127. }
  128.  
  129. @-webkit-keyframes bouncedelay {
  130.   0%, 80%, 100% { -webkit-transform: scale(0.0) }
  131.   40% { -webkit-transform: scale(1.0) }
  132. }
  133.  
  134. @keyframes bouncedelay {
  135.   0%, 80%, 100% {
  136.     transform: scale(0.0);
  137.     -webkit-transform: scale(0.0);
  138.   } 40% {
  139.     transform: scale(1.0);
  140.     -webkit-transform: scale(1.0);
  141.   }
  142. }
  143. </style>
  144.   
  145. </head>
  146. <body style="background:#bfbfbf;">
  147.  
  148. <div style="height: 100%; width: 100%">
  149.  <div id="bb">
  150.   <div class="spinner">
  151.   <div class="spinner-container container1">
  152.    <div class="circle1" ></div>
  153.    <div class="circle2" ></div>
  154.    <div class="circle3" ></div>
  155.    <div class="circle4" ></div>
  156.   </div>
  157.   <div class="spinner-container container2" >
  158.    <div class="circle1" ></div>
  159.    <div class="circle2" ></div>
  160.    <div class="circle3" ></div>
  161.    <div class="circle4" ></div>
  162.   </div>
  163.   <div class="spinner-container container3">
  164.    <div class="circle1" ></div>
  165.    <div class="circle2" ></div>
  166.    <div class="circle3" ></div>
  167.    <div class="circle4" ></div>
  168.   </div>
  169.  </div>
  170.  <div id="cc">Finding...</div>
  171.  </div>
  172. </div>


  173. </body>
  174. </html>



 

阅读(576) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~