<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>loading</title>
<style type="text/css">
*{
margin:0;
padding:0;
}
.f{ margin:auto;
margin-top:100px;
width: 326px;
height: 154px;
background-color:beige;
}
.ff{ margin-top:12px;
margin-left: 12px;
width: 301px;
height: 125px;
border:1px solid black;
float: left;
}
.fs{
width: 301px;
height: 100px;
list-style: none;
background-color:white;
}
.fs>li{ width: 30px;
height: 36px;
margin-top:32px;
margin-left: 15px;
margin-right:15px;
border-radius: 20%;
float: left;
}
.fs1{
background-color:red;
animation: a 0.5s ease 100ms infinite alternate;
}
.fs2{
background-color:gold;
animation: a 0.5s ease 300ms infinite alternate;
}
.fs3{ background-color:blue;
animation: a 0.5s ease 500ms infinite alternate;
/*name 动画完成时间 运动曲线 延时 重复 轮流反方向播放 */
}
.fs4{
background-color:yellow;
animation: a 0.5s ease 700ms infinite alternate;
}
.fs5{
background-color:green;
animation: a 0.5s ease 900ms infinite alternate;
}
@keyframes a{
0%{
}
100%{
transform:scale(1.2,1.5);
}
}
.w{ width: 301px;
height: 23px;
font-size:16px;
padding-top:2px;
text-align:center;
background-color:white;
}
</style>
</head>
<body>
<div class="f">
<div class="ff">
<div class="fs">
<li class="fs1">
</li> <li class="fs2">
</li> <li class="fs3">
</li> <li class="fs4">
</li> <li class="fs5">
</li>
</div>
<div class="w">loding ...</div>
</div>
</div>
</body>
</html>
image.png
网友评论