.spanstar {
    position: absolute;
    top: 0%;
    left: 20%;
    width: 4px;
    height: 4px;
    z-index: 1000;
    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;
}

.spanstar::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: .5;
    }

    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

.star span:nth-child(1) {
    top: 0;
    right: 50px;
    left: initial;
    animation-delay: 3s;
    animation-duration: 5s;
}

.star span:nth-child(2) {
    top: 0;
    right: 300px;
    left: initial;
    animation-delay: 6s;
    animation-duration: 5s;
}

.star span:nth-child(3) {
    top: 0px;
    right: 500px;
    left: initial;
    animation-delay: 4s;
    animation-duration: 4s;
}

.star span:nth-child(4) {
    top: 0;
    right: 700px;
    left: initial;
    animation-delay: 9s;
    animation-duration: 7s;
}

.star>span:nth-child(5) {
    top: 0;
    right: 900px;
    left: initial;
    animation-delay: 2s;
    animation-duration: 4s;
}

.star>span:nth-child(6) {
    top: 0;
    right: 1200px;
    left: initial;
    animation-delay: 4s;
    animation-duration: 8s;
}