Files
ActionBlock/actionBlocks_website/src/components/ItemFlashOverlay.module.css
T
2026-10-24 21:16:18 +02:00

52 lines
692 B
CSS

.overlay {
position: absolute;
top: 12%;
left: 0;
right: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
pointer-events: none;
line-height: 1.3;
z-index: 2;
}
.flash {
padding: 8px 10px;
border: 3px solid;
background: #000;
font-size: 14px;
text-transform: uppercase;
text-align: center;
animation: flash 1.4s steps(7) forwards;
}
.small .flash {
padding: 4px 5px;
border-width: 2px;
font-size: 8px;
}
@keyframes flash {
0% {
opacity: 1;
transform: scale(1.3);
}
15% {
transform: scale(1);
}
20%,
40%,
60% {
opacity: 1;
}
30%,
50% {
opacity: 0.3;
}
100% {
opacity: 0;
}
}