校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > HTML5等待加載動畫效果

HTML5等待加載動畫效果

熱門標簽:漳州人工外呼系統(tǒng)排名 鶴壁手機自動外呼系統(tǒng)怎么安裝 鄭州電銷外呼系統(tǒng)違法嗎 威海營銷外呼系統(tǒng)招商 濟南辦理400電話 農村住宅地圖標注 ai電銷機器人連接網關 跟電銷機器人做同事 中紳電銷智能機器人

廢話不多說了,直接給大家貼代碼了,具體代碼如下所示:

<div class="loading">
     <p>100<span></span></p>
</div>
  *{margin:0;padding:0;}
    .loading{
          height:100%;width:100%;position:fixed;background:rgba(255,255,255,1);
    }
    .loading >p{position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;height:160px;width:160px;text-align: center;line-height:160px;font-size: 30px;color:#f00;}
    .loading p span{position:absolute;display:block;height:140px;width:140px;margin:10px;border-radius:50%;-webkit-box-shadow:0 2px 3px rgba(102,197,37,0.8); animation:loading ease 1s infinite;left:0;top:0;}
    @keyframes loading{
       0%{transform:rotate(0deg)}
       100%{transform:rotate(360deg)}
    }

<div class="loading">
     <p>
  <i></i>
  <i></i>
  <i></i>
  <i></i>
  <i></i>
</p>
</div>
 *{margin:0;padding:0;}
    .loading{
          height:100%;width:100%;position:fixed;background:rgba(255,255,255,0.95);
    }
    .loading >p{position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;height:30px;width:120px;}
    .loading >p i{display: block;float:left;margin:0 5px; width:5px;height:30px;background:#f00;transform:scaleY(0.3);
                   animation:loading 1s ease infinite alternate;
    }
.loading >p i:nth-child(2){animation-delay:0.1s;}
.loading >p i:nth-child(3){animation-delay:0.2s;}
.loading >p i:nth-child(4){animation-delay:0.3s;}
.loading >p i:nth-child(5){animation-delay:0.4s;}
    @keyframes loading{
           0,40%,100%{transform:scaleY(0.3);}
           20%{transform:scaleY(1);}
    }

其實我想做的是加載進度條效果,但是假的進度條太爛,真的又沒有特別好的辦法,判斷圖片這種總感覺比較漏。

這是代碼,有完美解決方案了解決。

<script>
    document.onreadystatechange=function(){
      if(document.readyState=='complete'){
         $('.loading').fadeOut();
      }
    }
</script>

總結

以上所述是小編給大家介紹的HTML5等待加載動畫效果,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對腳本之家網站的支持!

標簽:惠州 紅河 萍鄉(xiāng) 蘇州 營口 咸陽 甘南 文山

巨人網絡通訊聲明:本文標題《HTML5等待加載動畫效果》,本文關鍵詞  HTML5,等待,加載,動畫,效果,;如發(fā)現(xiàn)本文內容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內容系統(tǒng)采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《HTML5等待加載動畫效果》相關的同類信息!
  • 本頁收集關于HTML5等待加載動畫效果的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 卓尼县| 从化市| 金塔县| 克什克腾旗| 镇原县| 泌阳县| 宣城市| 德州市| 柯坪县| 石河子市| 德州市| 汉源县| 鹤壁市| 宕昌县| 和田县| 阜平县| 文昌市| 醴陵市| 射洪县| 永寿县| 德安县| 灵川县| 江达县| 保德县| 镇远县| 金华市| 海宁市| 阿克| 若羌县| 肇庆市| 宝兴县| 抚顺县| 崇左市| 五指山市| 安泽县| 依安县| 资兴市| 车致| 梧州市| 称多县| 洮南市|