<div class="container">
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>
body {
display:flex;
justify-content:center;
margin-top:5rem;
}
.dot {
display: inline-block;
width: 15px;
height: 15px;
border-radius: 15px;
background-color: #4b9cdb;
}
.container .dot:nth-last-child(1) {
animation: fallingAnimation 1s 0.3s linear infinite;
}
.container .dot:nth-last-child(2) {
animation: fallingAnimation 1s 0.2s linear infinite;
}
.container .dot:nth-last-child(3) {
animation: fallingAnimation 1s 0.1s linear infinite;
}
@keyframes fallingAnimation {
0% {
transform: translate(0,-15px);
opacity:0;
}
25%, 50%, 75% {
transform: translate(0,0);
opacity:1;
}
100% {
transform: translate(0,15px);
opacity:0;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.