From 342429fccfeb60856c51b7bb28c9884f0c68af01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Thu, 25 Jun 2026 03:07:27 +0200 Subject: [PATCH] fix: Kunden-Marquee zeigt zwei Bahnen untereinander MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ursache: .kunden-spur war display:inline-flex, also fliessen die zwei Spuren als inline-Elemente im Block-Kontext um, sobald Whitespace zwischen den
steht → jede Spur eigene Zeile, marquee zeigt sich als zwei parallele Bahnen. Fix: - .kunden-marquee: bleibt overflow:hidden mit Maske (unveraendert) - .kunden-track (neu): display:flex flex-wrap:nowrap width:max-content — nimmt beide Spuren als Flex-Items in einer Zeile auf - .kunden-spur: jetzt display:flex flex:0 0 auto — keine inline-flex Umbruch-Probleme mehr - Animation wandert von .kunden-spur auf .kunden-track, translateX 0 -> -50% wirkt weiter (Track = 2x Spuren-Breite, nahtloser Loop) - Hover-Pause und reduced-motion greifen jetzt auf .kunden-track - Mobile: Spaltenabstand 32px, Animation 50s auf .kunden-track --- public/custom/site.css | 17 +++++++++++------ public/index.html | 2 ++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/public/custom/site.css b/public/custom/site.css index cefbe94..b0250a0 100644 --- a/public/custom/site.css +++ b/public/custom/site.css @@ -180,13 +180,17 @@ mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); } - .kunden-spur { - display: inline-flex; align-items: center; gap: 48px; - white-space: nowrap; padding-right: 48px; /* Schlussabstand wie Lücke */ + .kunden-track { + display: flex; flex-wrap: nowrap; width: max-content; animation: kunden-scroll 60s linear infinite; will-change: transform; } - .kunden-marquee:hover .kunden-spur { animation-play-state: paused; } + .kunden-spur { + display: flex; align-items: center; gap: 48px; + flex: 0 0 auto; white-space: nowrap; + padding-right: 48px; /* Schlussabstand wie Lücke */ + } + .kunden-marquee:hover .kunden-track { animation-play-state: paused; } .kunden-marquee span.eintrag { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); @@ -199,12 +203,13 @@ to { transform: translateX(-50%); } } @media (prefers-reduced-motion: reduce) { - .kunden-spur { animation: none; transform: none; } + .kunden-track { animation: none; transform: none; } .kunden-marquee { overflow-x: auto; scrollbar-width: thin; } } @media (max-width: 809.98px) { .kunden-marquee span.eintrag { font-size: 15px; } - .kunden-spur { gap: 32px; padding-right: 32px; animation-duration: 50s; } + .kunden-spur { gap: 32px; padding-right: 32px; } + .kunden-track { animation-duration: 50s; } } /* ---------- Footer ---------- */ diff --git a/public/index.html b/public/index.html index 41d4ed6..7b51d47 100644 --- a/public/index.html +++ b/public/index.html @@ -182,6 +182,7 @@
Bisherige Kunden & Auftraggeber
+
+