#comets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#comets span {
    position: absolute;
    top:50%;
    left:50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1),0 0 0 8px rgba(255,255,255,0.1),0 0 20px rgba(255,255,255,0.1);
    animation: animate 3s linear infinite;
}
#comets span::before {
    content:'';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg,#fff,transparent);
}
@keyframes animate {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}
#comets span:nth-child(1) {
    top: 0;
    right: 0;
    left: initial;
    animation-delay: 1s;
    animation-duration: 2s;
}
#comets span:nth-child(2) {
    top: 0;
    right: 80px;
    left: initial;
    animation-delay: 1.2s;
    animation-duration: 6s;
}
#comets span:nth-child(3) {
    top: 80;
    right: 0px;
    left: initial;
    animation-delay: 1.4s;
    animation-duration: 4s;
}
#comets span:nth-child(4) {
    top: 0;
    right: 180px;
    left: initial;
    animation-delay: 1.6s;
    animation-duration: 3s;
}
#comets span:nth-child(5) {
    top: 0;
    right: 400px;
    left: initial;
    animation-delay: 1.8s;
    animation-duration: 5s;
}
#comets span:nth-child(6) {
    top: 0;
    right: 600px;
    left: initial;
    animation-delay: 2s;
    animation-duration: 6s;
}
#comets span:nth-child(7) {
    top: 300px;
    right: 0px;
    left: initial;
    animation-delay: 2.2s;
    animation-duration: 3.5s;
}
#comets span:nth-child(8) {
    top: 0px;
    right: 700px;
    left: initial;
    animation-delay: 2.4s;
    animation-duration: 2.5s;
}
#comets span:nth-child(9) {
    top: 0px;
    right: 1000px;
    left: initial;
    animation-delay: 1.75s;
    animation-duration: 4.5s;
}
#comets span:nth-child(10) {
    top: 0px;
    right: 450px;
    left: initial;
    animation-delay: 3.75s;
    animation-duration: 9.5s;
}