<!
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="anim2.css" />
<title>Document</title>
</head>
<body>
<div class="b">b</div>
<div class="o1">o</div>
<div class="n">n</div>
<div class="j">j</div>
<div class="o2">o</div>
<div class="u">u</div>
<div class="r">r</div>
</body>
</html>
div {
width: 60px;
height: 60px;
background-color: aqua;
border-radius: 50%;
margin-left: 5px;
margin-right: 5px;
text-align: center;
font-size: 50px;
float: left;
animation: anim 2s infinite;
animation-direction: alternate;
}
.b {
animation-delay: 0.5s;
}
.o1 {
animation-delay: 0.75s;
}
.n {
animation-delay: 1s;
}
.j {
animation-delay: 1.25s;
}
.o2 {
animation-delay: 1.5s;
}
.u {
animation-delay: 1.75s;
}
.r {
animation-delay: 2s;
}
@keyframes anim {
0%,
100% {
margin-top: 15px;
}
50% {
margin-top: 100px;
}
}