日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
CSS3閃爍跳躍的進度條

之前為大家分享過一篇關(guān)于css3進度條的一篇文章《實現(xiàn)CSS3動態(tài)進度條及JQUERY百分比數(shù)字顯示》,今天為大家?guī)砹硪豢罡邆€性化的進度條:CSS3閃爍跳躍的進度條。

創(chuàng)新互聯(lián)主要從事網(wǎng)站設(shè)計制作、成都做網(wǎng)站、網(wǎng)頁設(shè)計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)甘泉,十多年網(wǎng)站建設(shè)經(jīng)驗,價格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):028-86922220

查看預(yù)覽  下載附件

這個示例的原理和以前的都是一樣的,都是通過大量的css3屬性來實現(xiàn)的,如:animation、transform、keyframes等等屬性。值得注意的是這個示例采用了結(jié)構(gòu)性偽類選擇符E:nth-child(n),來進行對HTML元素的選擇以及控制輸出。相信這個偽類選擇符在將來會是一個很強大的一個工具。推薦大家多多了解以及實踐使用。

這個偽類選擇符E:nth-child(n)的含義是匹配父元素的第n個子元素E。 例如:ul li:nth-child(3)表示的是選擇

    元素里面的第3個
  • 。提示一下,該屬性在IE8(包含IE8)版本以下是不支持的。下面就一起來看看該示例的實現(xiàn)代碼吧,完整的代碼可下載附件查看。

    HTML結(jié)構(gòu)代碼

     
     
     
     
    1.  
    2.   
         
      •     
      •  
      •       
         
      •     
      •  
      •     
      •  
      •       
         
      •     
      •  
      •     
      •  
      •       
         
      •     
      •  
      •     
      •  
      •       
         
      •     
      •  
      •     
      •  
      •       
         
      •     
      •  
      •     
      •  
      •       
         
      •     
      •  
      •     
      •  
      •       
         
      •     
      •  
      •   
       
 

CSS樣式代碼

 
 
 
 
  1.  @keyframes bump {  
  2.  0% {  
  3.  opacity: 0;  
  4.  left: 535px;  
  5. }  
  6.  100% {  
  7.  left: -10px;  
  8.  opacity: 0;  
  9. }  
  10.  10%, 85% {  
  11.  opacity: 1;  
  12. }  
  13. }  
  14.  @keyframes spin {  
  15.  0%, 100% {  
  16.  height: 20px;  
  17.  top: 50px;  
  18. }  
  19.  50% {  
  20.  height: 100px;  
  21.  top: 0;  
  22. }  
  23. }  
  24. body {  
  25.     background: rgba(0, 0, 0, 0.2);  
  26. }  
  27. div.center {  
  28.     text-align: center;  
  29.     margin-top: 40px;  
  30. }  
  31. ul {  
  32.     background-color: rgba(255, 255, 255, 0.4);  
  33.     position: relative;  
  34.     display: block;  
  35.     padding: 0;  
  36.     margin: auto;  
  37.     width: 600px;  
  38.     height: 10px;  
  39.     list-style: none;  
  40.     border-radius: 200px;  
  41.     border: 5px solid rgba(255, 255, 255, 0.2);  
  42.     margin-top: 100px;  
  43.     box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1);  
  44. }  
  45. ul li {  
  46.     position: absolute;  
  47.     margin-top: -55px;  
  48. }  
  49. ul li:nth-child(1) {  
  50.     animation: bump 1.5s infinite;  
  51.     animation-delay: 0.1s;  
  52. }  
  53. ul li:nth-child(1) div {  
  54.     border-radius: 22px;  
  55.     transform-origin: center;  
  56.     position: absolute;  
  57.     height: 60px;  
  58.     width: 80px;  
  59.     animation: spin 0.4s infinite;  
  60.     animation-delay: 0.1s;  
  61.     background-color: rgba(120, 120, 120, 0.3);  
  62. }  
  63. ul li:nth-child(2) {  
  64.     animation: bump 1.5s infinite;  
  65.     animation-delay: 0.2s;  
  66. }  
  67. ul li:nth-child(2) div {  
  68.     border-radius: 22px;  
  69.     transform-origin: center;  
  70.     position: absolute;  
  71.     height: 60px;  
  72.     width: 80px;  
  73.     animation: spin 0.4s infinite;  
  74.     animation-delay: 0.2s;  
  75.     background-color: rgba(120, 0, 0, 0.3);  
  76. }  
  77. ul li:nth-child(3) {  
  78.     animation: bump 1.5s infinite;  
  79.     animation-delay: 0.3s;  
  80. }  
  81. ul li:nth-child(3) div {  
  82.     border-radius: 22px;  
  83.     transform-origin: center;  
  84.     position: absolute;  
  85.     height: 60px;  
  86.     width: 80px;  
  87.     animation: spin 0.4s infinite;  
  88.     animation-delay: 0.3s;  
  89.     background-color: rgba(120, 120, 0, 0.3);  
  90. }  
  91. ul li:nth-child(4) {  
  92.     animation: bump 1.5s infinite;  
  93.     animation-delay: 0.4s;  
  94. }  
  95. ul li:nth-child(4) div {  
  96.     border-radius: 22px;  
  97.     transform-origin: center;  
  98.     position: absolute;  
  99.     height: 60px;  
  100.     width: 80px;  
  101.     animation: spin 0.4s infinite;  
  102.     animation-delay: 0.4s;  
  103.     background-color: rgba(0, 120, 0, 0.3);  
  104. }  
  105. ul li:nth-child(5) {  
  106.     animation: bump 1.5s infinite;  
  107.     animation-delay: 0.5s;  
  108. }  
  109. ul li:nth-child(5) div {  
  110.     border-radius: 22px;  
  111.     transform-origin: center;  
  112.     position: absolute;  
  113.     height: 60px;  
  114.     width: 80px;  
  115.     animation: spin 0.4s infinite;  
  116.     animation-delay: 0.5s;  
  117.     background-color: rgba(0, 120, 120, 0.3);  
  118. }  
  119. ul li:nth-child(6) {  
  120.     animation: bump 1.5s infinite;  
  121.     animation-delay: 0.6s;  
  122. }  
  123. ul li:nth-child(6) div {  
  124.     border-radius: 22px;  
  125.     transform-origin: center;  
  126.     position: absolute;  
  127.     height: 60px;  
  128.     width: 80px;  
  129.     animation: spin 0.4s infinite;  
  130.     animation-delay: 0.6s;  
  131.     background-color: rgba(0, 0, 120, 0.3);  
  132. }  
  133. ul li:nth-child(7) {  
  134.     animation: bump 1.5s infinite;  
  135.     animation-delay: 0.7s;  
  136. }  
  137. ul li:nth-child(7) div {  
  138.     border-radius: 22px;  
  139.     transform-origin: center;  
  140.     position: absolute;  
  141.     height: 60px;  
  142.     width: 80px;  
  143.     animation: spin 0.4s infinite;  
  144.     animation-delay: 0.7s;  
  145.     background-color: rgba(120, 0, 120, 0.3);  

注:請自行在所需之處加上瀏覽器前綴(如:-webkit- 、 -moz-),否則將不能正常顯示效果。

原文鏈接:http://www.jiawin.com/flashing-jumping-progress-bar/


網(wǎng)站題目:CSS3閃爍跳躍的進度條
本文來源:http://m.5511xx.com/article/ccojjps.html