feat: 3D-Medaille, Gold-Schriftzug und Gold-Rieseln im Preis-Moment

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Leon TonhäuserandClaude Fable 5 committed 2026-06-11 12:14:59 +02:00
1 parent 9ac226eced
commit d7db9124c6
2 files changed
+70 -9

No files matched your search

+60 -6
View File
@@ -322,25 +322,79 @@
border-radius: var(--radius-karte); border-radius: var(--radius-karte);
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
} }
.medaille { /* 3D-Medaille: flache CSS-Münze, dreht sich dauerhaft um die Y-Achse */
position: absolute; left: 50%; bottom: -44px; .medaille-3d {
transform: translateX(-50%); position: absolute; right: -48px; top: 50%;
z-index: 3;
width: 96px; height: 96px; width: 96px; height: 96px;
margin-top: -48px;
perspective: 420px;
z-index: 3;
}
.medaille-kern {
position: relative;
width: 100%; height: 100%;
transform-style: preserve-3d;
animation: muenzdrehung 6s linear infinite;
}
@keyframes muenzdrehung {
from { transform: rotateY(0deg); }
to { transform: rotateY(360deg); }
}
.medaille-seite {
position: absolute; inset: 0;
border-radius: 50%; border-radius: 50%;
backface-visibility: hidden;
background: radial-gradient(circle at 35% 30%, #f3d27a, #c9a227 60%, #9a7a1c); background: radial-gradient(circle at 35% 30%, #f3d27a, #c9a227 60%, #9a7a1c);
display: flex; align-items: center; justify-content: center; display: flex; align-items: center; justify-content: center;
font-weight: 600; font-size: 34px; color: #fff; font-weight: 600; font-size: 34px; color: #fff;
border: 3px solid #fff; border: 3px solid #fff;
box-shadow: 0 10px 28px rgba(154, 122, 28, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.5); box-shadow: 0 10px 28px rgba(154, 122, 28, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.5);
} }
.medaille-seite.hinten { transform: rotateY(180deg); }
/* Gold-Schriftzug: Verlauf wandert durch den Text */
.preis-text { .preis-text {
margin-top: 64px; position: relative;
margin-top: 28px;
font-family: "Fragment Mono", monospace; font-family: "Fragment Mono", monospace;
font-size: 14px; font-size: 14px;
letter-spacing: 3px; letter-spacing: 3px;
color: #9a7a1c; background: linear-gradient(100deg, #9a7a1c 0%, #c9a227 30%, #f7e7ae 50%, #c9a227 70%, #9a7a1c 100%);
background-size: 200% 100%;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: goldglanz 3s linear infinite;
} }
@keyframes goldglanz {
from { background-position: 200% 0; }
to { background-position: -200% 0; }
}
/* Gold-Rieseln: kleine Partikel fallen vom Schriftzug herab */
.preis-text .rieseln {
position: absolute; top: 100%;
width: 3px; height: 3px;
border-radius: 50%;
background: #c9a227;
opacity: 0;
animation: rieseln 2.8s linear infinite;
}
@keyframes rieseln {
0% { transform: translate(0, 0); opacity: 0; }
15% { opacity: 0.9; }
100% { transform: translate(var(--drift, 0px), 46px); opacity: 0; }
}
.preis-text .rieseln:nth-child(1) { left: 6%; animation-delay: 0.0s; --drift: -6px; }
.preis-text .rieseln:nth-child(2) { left: 16%; animation-delay: 1.1s; --drift: 4px; }
.preis-text .rieseln:nth-child(3) { left: 25%; animation-delay: 0.4s; --drift: -3px; }
.preis-text .rieseln:nth-child(4) { left: 34%; animation-delay: 1.8s; --drift: 5px; }
.preis-text .rieseln:nth-child(5) { left: 45%; animation-delay: 0.8s; --drift: -5px; }
.preis-text .rieseln:nth-child(6) { left: 55%; animation-delay: 2.2s; --drift: 3px; }
.preis-text .rieseln:nth-child(7) { left: 64%; animation-delay: 0.2s; --drift: -4px; }
.preis-text .rieseln:nth-child(8) { left: 75%; animation-delay: 1.4s; --drift: 6px; }
.preis-text .rieseln:nth-child(9) { left: 85%; animation-delay: 2.6s; --drift: -2px; }
.preis-text .rieseln:nth-child(10) { left: 94%; animation-delay: 0.6s; --drift: 4px; }
.konfetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } .konfetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Flug-Partikel: Staub, Lichtstreifen und Bokeh fliegen der Kamera entgegen */ /* Flug-Partikel: Staub, Lichtstreifen und Bokeh fliegen der Kamera entgegen */
+10 -3
View File
@@ -109,12 +109,19 @@
<div class="flug-foto" data-x="230" data-y="120" data-z="-1330" data-kipp="-22"><img src="assets/images_Acj4QcNPfkhKlXAWxrUP5cBJjQ.jpg" alt=""></div> <div class="flug-foto" data-x="230" data-y="120" data-z="-1330" data-kipp="-22"><img src="assets/images_Acj4QcNPfkhKlXAWxrUP5cBJjQ.jpg" alt=""></div>
<div class="preis" id="preis"> <div class="preis" id="preis">
<div class="preis-bild"> <div class="preis-bild" id="preis-bild">
<!-- PLATZHALTER: hier kommt Leons Gewinnerbild hin --> <!-- PLATZHALTER: hier kommt Leons Gewinnerbild hin -->
<img src="assets/images_gsbJqmtaUiOBBzMKyXW2P7s.jpg" alt="Gewinnerbild Nachwuchspreis 2025"> <img src="assets/images_gsbJqmtaUiOBBzMKyXW2P7s.jpg" alt="Gewinnerbild Nachwuchspreis 2025">
<div class="medaille">1</div> <!-- 3D-Medaille: dreht sich neben dem Bild um die eigene Achse -->
<div class="medaille-3d" id="medaille" aria-hidden="true">
<div class="medaille-kern">
<div class="medaille-seite">1</div>
<div class="medaille-seite hinten"></div>
</div>
</div>
</div> </div>
<div class="preis-text">NACHWUCHSPREIS 2025</div> <!-- Gold-Schriftzug mit herabrieselnden Goldpartikeln -->
<div class="preis-text" id="preis-text">NACHWUCHSPREIS 2025<span class="rieseln"></span><span class="rieseln"></span><span class="rieseln"></span><span class="rieseln"></span><span class="rieseln"></span><span class="rieseln"></span><span class="rieseln"></span><span class="rieseln"></span><span class="rieseln"></span><span class="rieseln"></span></div>
</div> </div>
<canvas class="konfetti" id="konfetti"></canvas> <canvas class="konfetti" id="konfetti"></canvas>