add moving card rotation

This commit is contained in:
jahlib
2025-11-05 19:12:49 +03:00
committed by GitHub
parent 65b7ec7176
commit da88705230
+11 -1
View File
@@ -2093,11 +2093,21 @@ border: 2px solid #ffd700;
pointer-events: none;
z-index: 10000;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
animation: cardSpin 0.4s linear;
}
.flying-card.arrived {
opacity: 0;
transform: scale(0.5);
transform: scale(0.5) rotateY(180deg);
}
@keyframes cardSpin {
0% {
transform: rotateY(0deg);
}
100% {
transform: rotateY(360deg);
}
}
/* Deck shuffle animation */