动画效果图:
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.loading {
text-align: center;
height: 40px;
line-height: 40px;
position: relative;
}
.loading span{
display: inline-block;
width: 2px;
height: 10px;
background:#690;
animation: loading 1.4s ease-out infinite;
}
.loading span:nth-child(2){
animation-delay: -1.2s;
}
.loading span:nth-child(3){
animation-delay: -1.0s;
}
.loading span:nth-child(4){
animation-delay: -0.8s;
}
.loading span:nth-child(5){
animation-delay: -0.6s;
}
@keyframes loading{
0% {
transform: scale(0.4);
}
25% {
transform: scale(1);
}
50% {
transform: scale(1.6);
}
75%{
transform: scale(1.0);
}
100%{
transform: scale(0.4);
}
}
</style>
</head>
<body>
<div class="loading" v-show="loading">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</body>
<script type="text/javascript">
</script>
</html>