Make page transitions smooth

This commit is contained in:
Akira Tempaku 2025-05-04 15:21:25 +09:00
commit 604912cf36
Signed by: paku
GPG key ID: 5B4E8402BCC50607
4 changed files with 27 additions and 13 deletions
static/style

View file

@ -23,3 +23,23 @@
font-family: "Zen Maru Gothic", sans-serif;
}
}
@keyframes fade-in {
from { opacity: 0; }
}
@keyframes fade-out {
to { opacity: 0; }
}
::view-transition-old(fade) {
animation: 300ms ease both fade-out,
}
::view-transition-new(fade) {
animation: 300ms ease both fade-in,
}
.fade {
view-transition-name: fade;
}