@keyframes flipOutY {
    0% {
        animation-timing-function: ease-out;
        transform: perspective(400px)
    }

    to {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg)
    }
}

.flipOutY {
    animation-name: flipOutY;
    backface-visibility: visible !important
}