.spinner {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 24px;
}

.spinner__dot {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    animation: spinner-dot 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner__dot:nth-child(1) {
    animation-delay: -0.4s;
}

.spinner__dot:nth-child(2) {
    animation-delay: -0.2s;
}

.spinner__dot:nth-child(3) {
    animation-delay: 0;
}

@keyframes spinner-dot {
    0%, 100% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
}