review: use simple transition instead of keyframe

This commit is contained in:
Valere
2025-12-04 10:36:57 +01:00
parent 940c787040
commit 7a2c1af44b

View File

@@ -2,39 +2,22 @@
position: fixed;
z-index: var(--call-view-overlay-layer);
inset: 0;
display: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--cpd-space-2x);
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
transition: opacity 200ms;
}
.overlay[data-show="true"] {
display: flex;
animation: fade-in 200ms;
}
@keyframes fade-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
opacity: 1;
}
.overlay[data-show="false"] {
animation: fade-out 130ms forwards;
opacity: 0;
pointer-events: none;
transition-duration: 130ms;
}
.overlay::before {