Browse documentation
Reference / Transitions & animation
Flip and blur animations
Flip rotates around the vertical axis with perspective. Blur brings an element into or out of focus while changing its opacity.
Working example
Inspect the reverse side
Reverse · Black ink, single impression.
Keep blur effects on small regions. Flipping a caption or badge requires less visual tracking than flipping a whole reading surface.
<details class="group rounded border p-4">
<summary class="cursor-pointer font-semibold">Inspect the reverse side</summary>
<p class="mt-3 origin-left motion-safe:group-open:animate-flip-in">Reverse · Black ink, single impression.</p>
</details>Class reference
| Class | CSS declarations |
|---|---|
animate-flip-in | animation: mono-flip-in 500ms ease-out both; |
animate-flip-out | animation: mono-flip-out 500ms ease-in both; |
animate-blur-in | animation: mono-blur-in 300ms ease-out both; |
animate-blur-out | animation: mono-blur-out 300ms ease-in both; |
View full generated CSS
@keyframes mono-blur-in {
from {
opacity: 0;
filter: blur(8px);
}
to {
opacity: 1;
filter: blur(0);
}
}
@keyframes mono-blur-out {
from {
opacity: 1;
filter: blur(0);
}
to {
opacity: 0;
filter: blur(8px);
}
}
@keyframes mono-flip-in {
from {
opacity: 0;
transform: perspective(600px) rotateY(-90deg);
}
to {
opacity: 1;
transform: perspective(600px) rotateY(0);
}
}
@keyframes mono-flip-out {
from {
opacity: 1;
transform: perspective(600px) rotateY(0);
}
to {
opacity: 0;
transform: perspective(600px) rotateY(90deg);
}
}
.animate-blur-in {
animation: mono-blur-in 300ms ease-out both;
}
.animate-blur-out {
animation: mono-blur-out 300ms ease-in both;
}
.animate-flip-in {
animation: mono-flip-in 500ms ease-out both;
}
.animate-flip-out {
animation: mono-flip-out 500ms ease-in both;
}