feat: add route transition

This commit is contained in:
keiko233
2023-11-11 18:32:11 +08:00
parent b704706ee9
commit 0ca7defe83
4 changed files with 48 additions and 16 deletions

View File

@@ -0,0 +1,21 @@
.page-enter {
opacity: 0;
transform: scale(0.9);
}
.page-enter-active {
opacity: 1;
transform: scale(1);
transition: opacity 300ms, transform 300ms;
}
.page-exit {
opacity: 1;
transform: scale(0);
}
.page-exit-active {
opacity: 0;
transform: scale(0.9);
transition: opacity 300ms, transform 300ms;
}