帝王谷资源网 Design By www.wdxyy.com
废话不多说了,直接给大家贴代码了,具体代码如下所示:
<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等待加载动画效果,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
帝王谷资源网 Design By www.wdxyy.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
帝王谷资源网 Design By www.wdxyy.com
暂无评论...
更新日志
2024年07月03日
2024年07月03日
- 《幻兽帕鲁》恐炬灵种族值介绍
- 胡又天《她说HQ》头版限量[低速原抓WAV+CUE]
- 韵味悠扬如诗如画《草原的骄傲3CD》DTS[WAV]
- 雨果唱片《秦王点兵LP1630》WAV+CUE
- 《战意》官宣上架WeGame平台 国内首个腾讯网易双服共营游戏
- 卡普空收购中国台湾CG工作室 曾参与《龙之信条2》《生化危机8:村庄》开发
- 韩妹《妮姬:胜利女神》COS图赏:身材优势尽显
- 《张韶涵 华语流行 17CD 全球最全最佳版》[WAV+CUE][5.6GB]
- 任素汐《无损音乐合集》2016-2024[FLAC/分轨][420MB]
- 华语群星《宝丽金超白金精选特辑Ⅰ 2CD》[WAV+CUE][980MB]
- 周传雄.1994-发觉【歌林】【WAV+CUE】
- 群星.2015-Celebration.45th.Anniversary环球志101系列6CD【环球】【WAV+CUE】
- 谭咏麟.1997-永恒的珍(新歌+精选)【宝丽金】【WAV+CUE】
- 原画壁纸及美图第262期,无水印可自取
- 原画壁纸及美图第263期,无水印可自取