*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body{
    width: 100%;
    height: 100%;
}
body{
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f1d1d;
}
.list{
    display: flex;
    align-items: center;
}
.item{
    list-style: none;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    animation: animate 1.5s ease-in-out infinite; 
}
@keyframes animate{
    0%, 40%, 100%
    {
        transform: scale(.2);
    }
    20%{
        transform: scale(1);
    }
}
.item:nth-child(1){
    animation-delay: -1.4s;
    box-shadow: 0 0 50px #ff0;
    background: #ff0;
}
.item:nth-child(2){
    animation-delay: -1.2s;
    box-shadow: 0 0 50px rgb(104, 243, 12);
    background: rgb(104, 243, 12);
}
.item:nth-child(3){
    animation-delay: -1s;
    box-shadow: 0 0 50px rgb(3, 148, 58);
    background: rgb(3, 148, 58);
}
.item:nth-child(4){
    animation-delay: -0.8s;
    box-shadow: 0 0 50px rgb(2, 110, 87);
    background: rgb(2, 110, 87);
}
.item:nth-child(5){
    animation-delay: -0.6s;
    box-shadow: 0 0 50px rgb(1, 64, 146);
    background: rgb(1, 64, 146);
}
.item:nth-child(6){
    animation-delay: -0.4s;
    box-shadow: 0 0 50px rgb(72, 6, 228);
    background: rgb(72, 6, 228);
}