.loader {
    margin: 1rem auto 1rem;
    width: 2rem;
    height: 0.375rem;
    position: relative;
}
.loader > * {
    position: absolute;
    top: 0;
    display:inline-block;
    width: 0.375rem;
    height: 0.375rem;
    background-color: #00E0EC;
}
.loader .dot {
    border-radius: 50%;
    animation: 1s ease 0s infinite tick;
}
@keyframes tick {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.66);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes increase {
    0% {
        left: 0;
        width: 0.375rem;
    }
    25% {
        left: 0;
        width: 100%;
    }
    50% {
        left: calc(100% - 0.375rem);
        width: 0.375rem;
    }
    75% {
        left: 0;
        width: 100%;
    }
    100% {
        left: 0;
        width: 0.375rem;
    }
}
.loader .line-in {
    border-radius: 50rem;
    animation: 1s ease 0s infinite increase;
}
.loader .dot:first-child {
    left: 0; 
}
.loader .dot:last-child {
    right: 0;
    animation-delay: 0.5s;
}