.loader {
    display: flex;
}

.fadeInAnimation {
    animation: forwards ease-in-out fadeIn 0.5s;
}

.fadeOutAnimation {
    animation: forwards ease-in-out fadeOut 0.5s;
}

.container-loader {
    height: 80px;
    margin: 0 8px;
    background-color: blue;
    position: relative;
}

.container-loader .circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    left: calc(50% - 5px);
    top: 0;
}

.container-loader .circle:nth-child(1) {
    top: 0;
    animation: anim_a 2s infinite ease-in-out;
    background-color: #63AD8F;
}

.container-loader .circle:nth-child(2) {
    top: calc(100% - 5px);
    transform: scale(1.5);
    animation: anim_b 2s infinite ease-in-out;
    background-color: #63AD8F;
}


@keyframes fadeIn {
    0% {
        display: none;
        opacity: 0;
    }

    100% {
        display: flex;
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        display: flex;
        opacity: 1;
    }

    100% {
        display: none;
        opacity: 0;
    }
}

@keyframes anim_a {
    0% {
        top: 0;
        z-index: 50;
    }

    20% {
        transform: scale(1.5);
    }

    50% {
        top: calc(100% - 5px);
    }

    50.1% {
        z-index: 0;
    }

    75% {
        transform: scale(0.8);
        z-index: 0;
    }

    100% {
        top: 0;
        z-index: 2;
    }
}

@keyframes anim_b {
    0% {
        top: calc(100% - 5px);
        z-index: 1;
    }

    25% {
        transform: scale(0.8);
    }

    50% {
        top: 0;
    }

    50.1% {
        z-index: 2;
    }

    80% {
        transform: scale(1.5);
        z-index: 2;
    }

    100% {
        top: calc(100% - 5px);
        z-index: 0;
    }
}

.container-loader:nth-child(2) .circle {
    animation-delay: -0.1s;
}

.container-loader:nth-child(3) .circle {
    animation-delay: -0.2s;
}

.container-loader:nth-child(4) .circle {
    animation-delay: -0.3s;
}

.container-loader:nth-child(5) .circle {
    animation-delay: -0.4s;
}

.container-loader:nth-child(6) .circle {
    animation-delay: -0.5s;
}

.container-loader:nth-child(7) .circle {
    animation-delay: -0.6s;
}

.container-loader:nth-child(8) .circle {
    animation-delay: -0.7s;
}

.container-loader:nth-child(9) .circle {
    animation-delay: -0.8s;
}

.container-loader:nth-child(10) .circle {
    animation-delay: -0.9s;
}

.container-loader:nth-child(11) .circle {
    animation-delay: -1s;
}

.container-loaderr:nth-child(12) .circle {
    animation-delay: -1.1s;
}