Private
Public Access
1
0

feat: Adding animations for map actions + getting rid of debugMode

This commit is contained in:
gauvainboiche
2026-04-01 19:14:58 +02:00
parent f161ccb0f0
commit ddd5f6ae72
10 changed files with 59 additions and 16 deletions

View File

@@ -1295,4 +1295,31 @@ canvas {
.playerListEmpty {
color: rgba(233, 238, 246, 0.4);
font-style: italic;
}
/* ── Map action animation ─────────────────────────────────────────────────── */
@keyframes mapAnimPop {
0% { transform: translate(-50%, -50%) scale(0.1); opacity: 0; }
20% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}
.mapAnim {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-size: 88px;
line-height: 1;
pointer-events: none;
z-index: 20;
display: none;
user-select: none;
}
.mapAnim--active {
display: block;
animation: mapAnimPop 0.5s ease-out forwards;
}