這期內(nèi)容當(dāng)中小編將會(huì)給大家?guī)?lái)有關(guān)如何制作HTML5加載時(shí)的等待動(dòng)畫(huà)效果,文章內(nèi)容豐富且以專(zhuān)業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
為荔浦等地區(qū)用戶(hù)提供了全套網(wǎng)頁(yè)設(shè)計(jì)制作服務(wù),及荔浦網(wǎng)站建設(shè)行業(yè)解決方案。主營(yíng)業(yè)務(wù)為成都網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì)、荔浦網(wǎng)站設(shè)計(jì),以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專(zhuān)業(yè)、用心的態(tài)度為用戶(hù)提供真誠(chéng)的服務(wù)。我們深信只要達(dá)到每一位用戶(hù)的要求,就會(huì)得到認(rèn)可,從而選擇與我們長(zhǎng)期合作。這樣,我們也可以走得更遠(yuǎn)!廢話(huà)不多說(shuō)了,直接給大家貼代碼了,具體代碼如下所示:
<p class="loading"> <p>100<span></span></p> </p>
*{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)} }
<p class="loading"> <p> <i></i> <i></i> <i></i> <i></i> <i></i> </p> </p>
*{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);} }
其實(shí)我想做的是加載進(jìn)度條效果,但是假的進(jìn)度條太爛,真的又沒(méi)有特別好的辦法,判斷圖片這種總感覺(jué)比較漏。
這是代碼,有完美解決方案了解決。
<script> document.onreadystatechange=function(){ if(document.readyState=='complete'){ $('.loading').fadeOut(); } } </script>
上述就是小編為大家分享的如何制作HTML5加載時(shí)的等待動(dòng)畫(huà)效果了,如果剛好有類(lèi)似的疑惑,不妨參照上述分析進(jìn)行理解。如果想知道更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)網(wǎng)站制作公司行業(yè)資訊頻道。
網(wǎng)站題目:如何制作HTML5加載時(shí)的等待動(dòng)畫(huà)效果-創(chuàng)新互聯(lián)
文章出自:http://aaarwkj.com/article12/cogcgc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、全網(wǎng)營(yíng)銷(xiāo)推廣、網(wǎng)站維護(hù)、域名注冊(cè)、營(yíng)銷(xiāo)型網(wǎng)站建設(shè)、企業(yè)建站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容