.linecontainer {
    position: relative;
    width: 80%;
    height: 5px;
    background-color: transparent;
}

.line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #a9a9a9, transparent);
    transform: translateY(-50%);
}

.dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: #35A7ED;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: moveDot 2s linear infinite;
}

.reddot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: #a52a2a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: moveDotreverse 2s linear infinite;
}

@keyframes moveDot {
    0% {
        left: 0%;
    }
    100% {
        left: 100%;
    }
}

@keyframes moveDotreverse {
    0% {
        left: 100%;
    }
    100% {
        left: 0%;
    }
}