Open History to see the last commit
1.game-canvas-container {
2 position: relative;
3 width: 100%;
4 height: 100%;
5 overflow: hidden;
6 touch-action: none; /* Prevent browser handling of touch gestures */
7 cursor: crosshair;
8}
9
10.game-canvas {
11 display: block;
12}
13
14/* Pop animation for other players' moves */
15.game-canvas-pop {
16 position: absolute;
17 width: 12px;
18 height: 12px;
19 border-radius: 50%;
20 transform: translate(-50%, -50%) scale(0);
21 pointer-events: none;
22 animation: game-canvas-pop 0.8s ease-out forwards;
23}
24
25@keyframes game-canvas-pop {
26 0% {
27 transform: translate(-50%, -50%) scale(0);
28 opacity: 1;
29 }
30 30% {
31 transform: translate(-50%, -50%) scale(2);
32 opacity: 0.9;
33 }
34 100% {
35 transform: translate(-50%, -50%) scale(3);
36 opacity: 0;
37 }
38}