add moving card rotation
This commit is contained in:
+11
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user