anya-ji's picture
Add files using upload-large-folder tool
646ba5f verified
Raw History Blame Contribute Delete
1.23 kB
<!DOCTYPE html>
<html>
<head>
<style>.progress{
height: 40px;
position: absolute;
top: 50%;
left: 50%;
margin: -20px 0 0 -50px;
}
.progress span{
transition: all 500ms ease;
background: #4A72DA;
box-shadow: 1px 2px 3px #999;
height: 10px;
width: 10px;
display: inline-block;
border-radius: 10px;
animation: wave 2s ease infinite;
}
.progress span:nth-child(1){ animation-delay: 0; }
.progress span:nth-child(2){ animation-delay: 100ms; }
.progress span:nth-child(3){ animation-delay: 200ms; }
.progress span:nth-child(4){ animation-delay: 300ms; }
.progress span:nth-child(5){ animation-delay: 400ms; }
.progress span:nth-child(6){ animation-delay: 500ms; }
.progress span:nth-child(7){ animation-delay: 600ms; }
.progress span:nth-child(8){ animation-delay: 700ms; }
@keyframes wave{
0%, 40%, 100% {
transform: translate(0, 0);
background-color: #4A72DA;
}
10% {
transform: translate(0, -15px);
background-color: red;
}
}</style>
</head>
<body>
<div class="progress container">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<script></script>
</body>
</html>