From 183d0742672281316c6060301a2943561cf6d2a3 Mon Sep 17 00:00:00 2001 From: Yandrik Date: Sat, 12 Jul 2025 14:51:47 +0200 Subject: [PATCH] feat: add damageflash --- index.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/index.html b/index.html index 4cd4630..0c59583 100644 --- a/index.html +++ b/index.html @@ -135,6 +135,23 @@ transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5); } + + .damage-flash { + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background: rgba(255, 0, 0, 0.5); + pointer-events: none; + z-index: 500; + opacity: 0; + transition: opacity 0.1s ease-out; + } + + .damage-flash.active { + opacity: 1; + } @@ -159,6 +176,8 @@ +
+