Skip to content
27 changes: 5 additions & 22 deletions src/room/EarpieceOverlay.module.css
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its nice to see that simplifying the css improved it.

Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down