十六种炫酷纯css加载动画(一)

更新时间:2023-07-28 05:37:11 阅读: 评论:0

⼗六种炫酷纯css加载动画(⼀)
⼀个好的开篇,会给你这个项⽬增加不少分值。
有没有遇到过打开页⾯加载⼀段时间,页⾯内容才加载出来。在等待加载的过程中页⾯却是空⽩页,给⽤户的体验特别不好,会让项⽬降⼀个档次。下⾯的⼗六种炫酷炸裂的css加载动画,会让你在等待的过程中,体验视觉盛宴,给⽤户不⼀般的加载体验,对,就是纯css3的炫酷加载动画,请看效果!
码字不易,且⾏且珍惜。
加载1
css源码
.title{
width: 100%;
text-align: center;
margin:60px 0;
font-size: 18px;
color: #999;
}
.loadingOne{董先
width: 80px;
height: 40px;
margin: 0 auto;
刺猬英语怎么说}
.
loadingOne span{
display: inline-block;
width: 8px;
height: 100%;
border-radius: 4px;
background: lightgreen;
-webkit-animation: load 1s ea infinite; animation: load 1s ea infinite;
}
@-webkit-keyframes load{
0%,100%{
height: 40px;
background: lightgreen;
}
50%{
height: 70px;
margin: -15px 0;
background: lightblue;
}
}
.loadingOne span:nth-child(2){
此地空余黄鹤楼-webkit-animation-delay:0.2s; animation-delay:0.2s;
}
.
loadingOne span:nth-child(3){
-webkit-animation-delay:0.4s; animation-delay:0.4s;
}
.loadingOne span:nth-child(4){
-webkit-animation-delay:0.6s; animation-delay:0.6s;
}
.loadingOne span:nth-child(5){
-webkit-animation-delay:0.8s; animation-delay:0.8s;
}
html源码
<div class="loadingOne">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>win7启动项
加载2
css源码
.loadingTwo{
width: 150px;
height: 4px;
border-radius: 2px;
margin: 0 auto;
margin-top:100px;
position: relative;
background: lightgreen;
-webkit-animation: changeBgColor 1.04s ea-in infinite alternate; animation: changeBgColor 1.04s ea-in infinite alternate;
}
.loadingTwo span{
display: inline-block;
家乡的景色
width: 16px;
height: 16px;
border-radius: 50%;
background: lightgreen;
position: absolute;
margin-top: -7px;
margin-left:-8px;
-webkit-animation: changePosition 1.04s ea-in infinite alternate; animation: changePosition 1.04s ea-in infinite alternate;
}
@-webkit-keyframes changeBgColor{
0%{
读后感标题怎么写background: lightgreen;
}
100%{
background: lightblue;
}
}
@-webkit-keyframes changePosition{
0%{
background: lightgreen;
}
100%{
margin-left: 142px;
background: lightblue;
}
}
html源码
<div class="loadingTwo">
<span></span>
</div>
加载3
css源码
.loadingThree{
width: 150px;
height: 15px;
margin: 0 auto;
margin-top:100px;
}
.loadingThree span{
display: inline-block;
美女的英语width: 15px;
height: 100%;
margin-right: 5px;
border-radius: 50%;
background: lightgreen;
-webkit-animation: load 1.04s ea infinite; }
.loadingThree span:last-child{
margin-right: 0px;
}
@-webkit-keyframes load{
0%{
opacity: 1;
}
100%{
opacity: 0;
}
}
.loadingThree span:nth-child(1){
-webkit-animation-delay:0.13s;
}
.loadingThree span:nth-child(2){
-webkit-animation-delay:0.26s;
}
.loadingThree span:nth-child(3){
-
webkit-animation-delay:0.39s;
}
.loadingThree span:nth-child(4){
-webkit-animation-delay:0.52s;
}
.loadingThree span:nth-child(5){
-webkit-animation-delay:0.65s;
}
html源码
<div class="loadingThree">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
加载4
css源码
.loadingFour{
width: 150px;
height: 15px;
margin: 0 auto;
margin-top:100px;
text-align: center;
}
.loadingFour span{
display: inline-block;
width: 15px;
height: 100%;
margin-right: 5px;
background: lightgreen;
-
webkit-animation: load 1.04s ea infinite;
}
.loadingFour span:last-child{
margin-right: 0px;
}
@-webkit-keyframes load{
0%{
opacity: 1;
}
100%{
opacity: 0;
}
}
.loadingFour span:nth-child(1){
-webkit-animation-delay:0.13s;
}
.loadingFour span:nth-child(2){
-webkit-animation-delay:0.26s;
}
.loadingFour span:nth-child(3){
-webkit-animation-delay:0.39s;
}
.
loadingFour span:nth-child(4){
-webkit-animation-delay:0.52s;
}
.loadingFour span:nth-child(5){
-webkit-animation-delay:0.65s;
}.loadingTwo{
width: 150px;
height: 4px;
border-radius: 2px;
margin: 0 auto;
margin-top:100px;
position: relative;
黑豆能打豆浆吗
background: lightgreen;
-webkit-animation: changeBgColor 1.04s ea-in infinite alternate; animation: changeBgColor 1.04s ea-in infinite alternate;
}
.loadingTwo span{
display: inline-block;
width: 16px;
height: 16px;

本文发布于:2023-07-28 05:37:11,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/1121222.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:加载   等待   动画   过程   增加   景色   读后感
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图