最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

CSS實(shí)現(xiàn)橫向粒子變動(dòng)加載動(dòng)畫

  發(fā)布時(shí)間:2016-04-25 15:39:21   作者:佚名   我要評(píng)論
這篇文章主要介紹了CSS實(shí)現(xiàn)橫向粒子變動(dòng)加載動(dòng)畫的相關(guān)資料,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

本文實(shí)例為大家分享了CSS實(shí)現(xiàn)橫向粒子變動(dòng)加載動(dòng)畫的對(duì)應(yīng)代碼,供大家參考,具體內(nèi)容如下

此處用到了CSS3動(dòng)畫animation屬性的animation-fill-mode屬性和animation-delay屬性。

 ● animation-fill-mode屬性規(guī)定動(dòng)畫在播放之前或之后,其動(dòng)畫效果是否可見。
        none:不改變默認(rèn)行為。
        forwards:當(dāng)動(dòng)畫完成后,保持最后一個(gè)屬性值(在最后一個(gè)關(guān)鍵幀中定義)。
        backwards:在animation-delay所指定的一段時(shí)間內(nèi),在動(dòng)畫顯示之前,應(yīng)用開始屬性值(在第一個(gè)關(guān)鍵幀
中定義)。
       both: 向前和向后填充模式都被應(yīng)用。   

 ●  animation-delay屬性定義動(dòng)畫何時(shí)開始。該屬性允許負(fù)值,示例中延遲0.16s執(zhí)行動(dòng)畫。         

CSS Code復(fù)制內(nèi)容到剪貼板
  1. #loader7:before,     
  2. #loader7:after,     
  3. #loader7 {     
  4.   border-radius: 50%;     
  5.   width: 2.5em;     
  6.   height: 2.5em;     
  7.   -webkit-animation-fill-mode: both;     
  8.   animation-fill-mode: both;     
  9.   -webkit-animation: load7 1.8s infinite ease-in-out;     
  10.   animation: load7 1.8s infinite ease-in-out;     
  11. }     
  12. #loader7 {     
  13.   margin60px 50px;     
  14.   floatleft;     
  15.   font-size10px;     
  16.   positionrelative;     
  17.   text-indent: -9999em;     
  18.   -webkit-animation-delay: 0.16s;     
  19.   animation-delay: 0.16s;     
  20. }     
  21. #loader7:before {     
  22.   left: -3.5em;     
  23. }     
  24. #loader7:after {     
  25.   left: 3.5em;     
  26.   -webkit-animation-delay: 0.32s;     
  27.   animation-delay: 0.32s;     
  28. }     
  29. #loader7:before,     
  30. #loader7:after {     
  31.   content'';     
  32.   positionabsolute;     
  33.   top: 0;     
  34. }     
  35. @-webkit-keyframes load7 {     
  36.   0%,     
  37.   80%,     
  38.   100% {     
  39.     box-shadow: 0 2.5em 0 -1.3em #000000;     
  40.   }     
  41.   40% {     
  42.     box-shadow: 0 2.5em 0 0 #000000;     
  43.   }     
  44. }     
  45. @keyframes load7 {     
  46.   0%,     
  47.   80%,     
  48.   100% {     
  49.     box-shadow: 0 2.5em 0 -1.3em #000000;     
  50.   }     
  51.   40% {     
  52.     box-shadow: 0 2.5em 0 0 #000000;     
  53.   }     
  54. }   

 以上就是本文的全部內(nèi)容,希望對(duì)大家學(xué)習(xí)CSS樣式進(jìn)行加載有所幫助。

相關(guān)文章

最新評(píng)論

蚌埠市| 安吉县| 双鸭山市| 札达县| 谷城县| 阳西县| 蕲春县| 南昌县| 金山区| 龙门县| 临清市| 甘肃省| 司法| 邛崃市| 塘沽区| 尉氏县| 封丘县| 中牟县| 隆尧县| 麻城市| 镶黄旗| 上高县| 朝阳县| 唐河县| 商都县| 明星| 阜城县| 博爱县| 靖江市| 义乌市| 灵寿县| 博乐市| 长阳| 元谋县| 通渭县| 南宁市| 巴里| 新巴尔虎右旗| 昌江| 阜康市| 许昌县|