flipOutY.css
TLDR
This file contains CSS code for animating an element to flip out in the Y-axis.
Classes
flipOutY
This class applies the animation to an element. It sets the animation duration to 75% of the --animate-duration
variable and sets the backface visibility to visible. The animation is named flipOutY
.
@keyframes flipOutY {
from {
transform: perspective(400px);
}
30% {
transform: perspective(400px) rotate3d(0, 1, 0, -15deg);
opacity: 1;
}
to {
transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
opacity: 0;
}
}
.flipOutY {
animation-duration: calc(var(--animate-duration) * 0.75);
backface-visibility: visible !important;
animation-name: flipOutY;
}