Make modal backdrop appear nicely

I probably created too many similar keyframes
This commit is contained in:
Lim Chee Aun 2022-12-27 01:44:41 +08:00
parent 3ac2a45244
commit 04ff8eca4c
3 changed files with 11 additions and 9 deletions

View file

@ -3,18 +3,10 @@
width: 16px;
height: 16px;
pointer-events: none;
animation: slow-appear 0.3s ease-in-out 1s both;
animation: appear 0.3s ease-in-out 1s both;
vertical-align: middle;
margin: 8px;
}
@keyframes slow-appear {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.loader-container.abrupt {
animation: none;
}

View file

@ -10,6 +10,7 @@
align-items: center;
background-color: var(--backdrop-color);
backdrop-filter: blur(24px);
animation: appear 0.5s var(--timing-function) both;
}
#modal-container > .light {

View file

@ -267,6 +267,15 @@ code {
/* KEYFRAMES */
@keyframes appear {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fade-in {
from {
opacity: 0;