From 2d76b6d7b9fbf10705c6e737a595cac0cab87d4b Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Tue, 30 Dec 2025 21:59:44 +0100 Subject: [PATCH] fix: center CRISPY animation with translate offset --- src/main.css | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main.css b/src/main.css index be067d5..6cc4e93 100644 --- a/src/main.css +++ b/src/main.css @@ -602,29 +602,29 @@ code, kbd { @keyframes dvd-bounce { 0% { - top: 10%; - left: 10%; - transform: scale(1); + top: 15%; + left: 15%; + transform: translate(-50%, -50%) scale(1); } 25% { - top: 70%; - left: 80%; - transform: scale(1.1); + top: 75%; + left: 85%; + transform: translate(-50%, -50%) scale(1.1); } 50% { - top: 20%; - left: 70%; - transform: scale(0.95); + top: 25%; + left: 75%; + transform: translate(-50%, -50%) scale(0.95); } 75% { - top: 60%; - left: 15%; - transform: scale(1.05); + top: 70%; + left: 20%; + transform: translate(-50%, -50%) scale(1.05); } 100% { - top: 10%; - left: 10%; - transform: scale(1); + top: 15%; + left: 15%; + transform: translate(-50%, -50%) scale(1); } }