<div class="dot1"> </div>
<div class="dot2"></div>
<div class="dot3"></div>
body {
margin: 0;
padding: 0;
background: black;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
height: 100vh;
}
.dot1, .dot2, .dot3 {
background: #fff;
width: 5px;
height: 5px;
border:double;
border-color:black;
border-radius: 50%;
margin: 10px;
}
.dot1 {
animation: jump 1.6s -0.32s linear infinite;
background: #4B0082;
}
.dot2 {
animation: jump 1.6s -0.16s linear infinite;
background: #B22222;
}
.dot3 {
animation: jump 1.6s linear infinite;
background: #006400;
}
@keyframes jump {
0%, 80%, 100% {
-webkit-transform: scale(0);
transform: scale(0);
} 40% {
-webkit-transform: scale(2.0);
transform: scale(2.0);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.