国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > HTML > 正文

HTML5等待加載動畫效果

2024-08-26 00:19:49
字體:
供稿:網(wǎng)友

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

<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)}    }

html5,加載等待,等待加載效果,html5加載動畫

<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);}    }

html5,加載等待,等待加載效果,html5加載動畫

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

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

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

總結(jié)

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


注:相關(guān)教程知識閱讀請移步到HTML教程頻道。
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 广州市| 石首市| 霍州市| 沙雅县| 弥渡县| 龙山县| 都安| 昭通市| 沅陵县| 乌拉特前旗| 汉寿县| 清河县| 永兴县| 桓仁| 宝清县| 大石桥市| 龙州县| 内乡县| 醴陵市| 洛宁县| 庐江县| 哈密市| 新田县| 广汉市| 鸡西市| 利津县| 夹江县| 安宁市| 茌平县| 香河县| 靖宇县| 静乐县| 司法| 泊头市| 江孜县| 西平县| 巴青县| 肇源县| 诸暨市| 金昌市| 淮北市|