fix: Better animations for actions
This commit is contained in:
@@ -1299,27 +1299,11 @@ canvas {
|
||||
|
||||
/* ── 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 {
|
||||
.mapAnimFloat {
|
||||
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;
|
||||
white-space: nowrap;
|
||||
}
|
||||
Reference in New Issue
Block a user