Движение точек
by fersterin
HTML
<div class="linear">
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
</div>
CSS
body {
text-align: center;
font: 12px/1 monospace;
background: #F0EFEE;
color: #777;
}
div {
display: inline-block;
position: relative;
margin: 20px 16px 20px 20px;
width: 150px;
height: 150px;
background: white;
box-shadow: 0 0 0 5px rgba(0,0,0,.1);
}
div:after {
position: absolute;
top: 6px;
left: 6px;
padding: 0 6px;
content: attr(class);
}
i {
position: absolute;
width: 5px;
height: 5px;
left: 0;
bottom: 0;
border-radius: 50%;
background: #F6AC31;
animation: move 2s infinite;
}
@keyframes move {
from {
left: 0; bottom: 0;
}
to {
left: 145px; bottom: 145px;
}
}
.linear i {
animation-timing-function: linear;
}
i:nth-child(2) {animation-delay:.1s;}
i:nth-child(3) {animation-delay:.2s;}
i:nth-child(4) {animation-delay:.3s;}
i:nth-child(5) {animation-delay:.4s;}
i:nth-child(6) {animation-delay:.5s;}
i:nth-child(7) {animation-delay:.6s;}
i:nth-child(8) {animation-delay:.7s;}
i:nth-child(9) {animation-delay:.8s;}
i:nth-child(10){animation-delay:.9s;}