@keyframes bounce
{
    0%, 100%
    {
        transform: translateY(min(0.8vw, 8px));
    }
    50%
    {
        transform: translateY(max(-0.8vw, -8px));
    }
}

.bounce
{
    animation: bounce 1.5s cubic-bezier(0, 0, 0.5, 2.5) infinite;
}