feat: add new page transition

This commit is contained in:
Sonny
2024-10-31 23:37:28 +01:00
committed by Sonny
parent 5c4ee3a1cd
commit bce00c7855
6 changed files with 85 additions and 29 deletions

View File

@@ -1,6 +1,40 @@
html,
body {
height: 100svh;
min-height: 100svh;
width: 100%;
background-color: light-dark(var(--mantine-color-white), rgb(34, 40, 49));
}
.__transition_fadeIn {
animation: fadeIn 0.25s ease;
opacity: 1;
scale: 1;
}
.__transition_fadeOut {
animation: fadeOut 0.25s ease;
opacity: 0;
scale: 0.9;
}
@keyframes fadeIn {
from {
opacity: 0;
scale: 0.9;
}
to {
opacity: 1;
scale: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
scale: 1;
}
to {
opacity: 0;
scale: 0.9;
}
}