From da88705230e52578a3c904afa49545c42e223ca2 Mon Sep 17 00:00:00 2001 From: jahlib <60108339+jahlib@users.noreply.github.com> Date: Wed, 5 Nov 2025 19:12:49 +0300 Subject: [PATCH] add moving card rotation --- client/style.css | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/client/style.css b/client/style.css index 71a84bf..4e1c15c 100644 --- a/client/style.css +++ b/client/style.css @@ -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 */