css实现炫酷10种loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:css实现炫酷10种loading加载动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body{
background:black;
color:white;
display:flex;
flex-direction:column;
align-items:center;
}
@keyframes glow{
50%{
border-color:lime;
width:95%;
box-shadow:0px 0px 10px -2px green;
}
100%{
border-color:green;
width:35%;
box-shadow:0px 0px 10px -2px green;
}
}
.sep{
width:35%;
border-bottom:2px solid green;
margin-bottom:20px;
animation:glow 8s infinite;
}
.container{
display:flex;
align-items:center;
justify-content:center;
background:black;
width:75%;
padding:10%;
flex-wrap:wrap;
}
.loader{
width:100px;
height:100px;
display:flex;
justify-content:center;
align-items:center;
margin:10px 20px;
}
@keyframes load{
50%{
transform:rotatez(180deg) scale(0.2);
border-color:orange;
}
100%{
transform:rotatez(360deg) scale(1.1);
}
}
.loader1::before{
content:"";
color:white;
height:30px;
width:30px;
background:transparent;
border-radius:45%;
border:25px dotted lime;
animation:load 1s infinite ease-in-out;
}
@keyframes load2{
50%{
transform:rotatez(180deg);
border-radius:55%;
}
100%{
transform:rotatez(360deg);
}
}
.loader2::before{
content:"";
color:white;
height:30px;
width:30px;
background:transparent;
border-radius:10%;
border:25px inset orange;
animation:load2 1s infinite ease-in-out;
}
@keyframes load3{
50%{
transform:rotatez(180deg) scale(1.5);
border-style:dotted;
}
100%{
transform:rotatez(360deg) scale(0.9);
}
}
.loader3::before{
content:"";
color:white;
height:30px;
width:30px;
background:transparent;
bor.........完整代码请登录后点击上方下载按钮下载查看
网友评论0