fix: Intro-Sequenz – 5 Bugs behoben (Atmen, Preis-Versatz, Landung-Sprung, Topbar, Script-Tag)
- Fotos erhalten in start() ihre Initial-Position aus data-Attributen, damit die Atmen-Phase (0–2 s) die Bilder schon korrekt verteilt zeigt - #preis, #konfetti und #landung-verlauf aus flug-buehne herausgezogen (direkte Kinder von flug-strecke), sodass der Sinkflug-Offset der Bühne den Preis-Moment nicht mehr um 190 px verschiebt - z-index-Staffelung für buehne (1), preis (2), konfetti (3) ergänzt - Landung-Phase startet lerp bei 190 (Sinkflug-Endwert) statt 0, kein sichtbarer Positions-Sprung mehr bei t=30 s - Topbar .landen-Animation in beenden() neu ausgelöst, erscheint nach Intro mit Einblend-Animation statt abrupt zu erscheinen - Kaputtes & zwischen smooth-scroll.js und transitions.js entfernt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
68a21f69bf
commit
f188feca1d
3 files changed
+31
-19
No files matched your search
@@ -7,7 +7,7 @@
|
|||||||
.flug-strecke { height: 100vh; position: relative; overflow: hidden; }
|
.flug-strecke { height: 100vh; position: relative; overflow: hidden; }
|
||||||
.flug-buehne {
|
.flug-buehne {
|
||||||
position: absolute; inset: 0;
|
position: absolute; inset: 0;
|
||||||
overflow: hidden;
|
overflow: hidden; z-index: 1;
|
||||||
perspective: 800px; perspective-origin: 50% 50%;
|
perspective: 800px; perspective-origin: 50% 50%;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
/* ==================== PREIS-MOMENT (Gold nur hier – Akzent) ==================== */
|
/* ==================== PREIS-MOMENT (Gold nur hier – Akzent) ==================== */
|
||||||
.preis {
|
.preis {
|
||||||
position: absolute; inset: 0;
|
position: absolute; inset: 0; z-index: 2;
|
||||||
display: flex; flex-direction: column;
|
display: flex; flex-direction: column;
|
||||||
align-items: center; justify-content: center;
|
align-items: center; justify-content: center;
|
||||||
opacity: 0; will-change: opacity, transform; pointer-events: none;
|
opacity: 0; will-change: opacity, transform; pointer-events: none;
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
.preis-text .rieseln:nth-child(8) { left: 75%; animation-delay: 1.4s; --drift: 6px; }
|
.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(9) { left: 85%; animation-delay: 2.6s; --drift: -2px; }
|
||||||
.preis-text .rieseln:nth-child(10) { left: 94%; animation-delay: 0.6s; --drift: 4px; }
|
.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; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
|
||||||
.landung-verlauf {
|
.landung-verlauf {
|
||||||
position: absolute; left: 0; right: 0; bottom: 0; height: 30vh;
|
position: absolute; left: 0; right: 0; bottom: 0; height: 30vh;
|
||||||
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
|
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
|
||||||
|
|||||||
@@ -61,6 +61,13 @@
|
|||||||
window.removeEventListener('keydown', sperreTasten, false);
|
window.removeEventListener('keydown', sperreTasten, false);
|
||||||
window.removeEventListener('mousemove', mausBewegen, false);
|
window.removeEventListener('mousemove', mausBewegen, false);
|
||||||
if (skipBtn) skipBtn.hidden = true;
|
if (skipBtn) skipBtn.hidden = true;
|
||||||
|
// Topbar-Lande-Animation neu auslösen, damit sie beim Erscheinen einfährt.
|
||||||
|
var topbar = document.querySelector('.topbar');
|
||||||
|
if (topbar && topbar.classList.contains('landen')) {
|
||||||
|
topbar.classList.remove('landen');
|
||||||
|
void topbar.offsetWidth; // Reflow: Animation zurücksetzen
|
||||||
|
topbar.classList.add('landen');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function frame(jetzt) {
|
function frame(jetzt) {
|
||||||
@@ -131,9 +138,10 @@
|
|||||||
if (preisText) preisText.style.opacity = 1 - e;
|
if (preisText) preisText.style.opacity = 1 - e;
|
||||||
}
|
}
|
||||||
// Phase Landung (30.0 – 33.0): Bühne fährt nach unten, Bühne + Vollbild aus.
|
// Phase Landung (30.0 – 33.0): Bühne fährt nach unten, Bühne + Vollbild aus.
|
||||||
|
// lerp startet bei 190 (Sinkflug-Endwert), kein sichtbarer Sprung.
|
||||||
if (t >= T.wachstumEnd && t < T.landungEnd) {
|
if (t >= T.wachstumEnd && t < T.landungEnd) {
|
||||||
var l = (t - T.wachstumEnd) / (T.landungEnd - T.wachstumEnd), e = easeOutCubic(l);
|
var l = (t - T.wachstumEnd) / (T.landungEnd - T.wachstumEnd), e = easeOutCubic(l);
|
||||||
if (buehne) buehne.style.transform = 'translateY(' + lerp(0, window.innerHeight, e) + 'px)';
|
if (buehne) buehne.style.transform = 'translateY(' + lerp(190, window.innerHeight, e) + 'px)';
|
||||||
if (buehne) buehne.style.opacity = 1 - e;
|
if (buehne) buehne.style.opacity = 1 - e;
|
||||||
if (preis) preis.style.opacity = 1 - e;
|
if (preis) preis.style.opacity = 1 - e;
|
||||||
}
|
}
|
||||||
@@ -151,10 +159,13 @@
|
|||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) { beenden(); return; }
|
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) { beenden(); return; }
|
||||||
// Hochformat-Erkennung pro Bild (Spec §3): einmalig vor rAF.
|
// Startposition setzen, damit Fotos beim Atmen (0–2 s) schon korrekt verteilt sind.
|
||||||
fotos.forEach(function (f) {
|
fotos.forEach(function (f) {
|
||||||
var img = f.querySelector('img');
|
var img = f.querySelector('img');
|
||||||
if (img && img.naturalHeight > img.naturalWidth) f.classList.add('hochformat');
|
if (img && img.naturalHeight > img.naturalWidth) f.classList.add('hochformat');
|
||||||
|
var x0 = parseFloat(f.dataset.x), y0 = parseFloat(f.dataset.y),
|
||||||
|
z0 = parseFloat(f.dataset.z), k0 = parseFloat(f.dataset.kipp);
|
||||||
|
f.style.transform = 'translate3d(calc(-50% + ' + x0 + 'px), calc(-50% + ' + y0 + 'px), ' + z0 + 'px) rotate(' + k0 + 'deg)';
|
||||||
});
|
});
|
||||||
if (window.matchMedia('(pointer: fine)').matches) {
|
if (window.matchMedia('(pointer: fine)').matches) {
|
||||||
window.addEventListener('mousemove', mausBewegen);
|
window.addEventListener('mousemove', mausBewegen);
|
||||||
|
|||||||
+15
-14
@@ -76,21 +76,22 @@
|
|||||||
<div class="flug-foto" data-x="-150" data-y="-130" data-z="-1150" data-kipp="16" data-mobil="aus"><img src="assets/images_9SPyQoOFzXo05riAbjXGgoc2tJU.jpg" alt=""></div>
|
<div class="flug-foto" data-x="-150" data-y="-130" data-z="-1150" data-kipp="16" data-mobil="aus"><img src="assets/images_9SPyQoOFzXo05riAbjXGgoc2tJU.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="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-bild" id="preis-bild">
|
|
||||||
<!-- PLATZHALTER: hier kommt Leons Gewinnerbild hin -->
|
|
||||||
<img src="assets/images_gsbJqmtaUiOBBzMKyXW2P7s.jpg" alt="Gewinnerbild 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>
|
|
||||||
<canvas class="konfetti" id="konfetti"></canvas>
|
|
||||||
|
|
||||||
<!-- Weißer Verlauf: lässt das Vollbild unten in die Landung auslaufen -->
|
|
||||||
<div class="landung-verlauf" id="landung-verlauf" aria-hidden="true"></div>
|
|
||||||
|
|
||||||
<div class="flug-hinweis" id="flug-hinweis">ANIMATION LÄUFT</div>
|
<div class="flug-hinweis" id="flug-hinweis">ANIMATION LÄUFT</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Preis, Konfetti und Verlauf außerhalb der Bühne, damit sie beim Sinkflug fix bleiben -->
|
||||||
|
<div class="preis" id="preis">
|
||||||
|
<div class="preis-bild" id="preis-bild">
|
||||||
|
<!-- PLATZHALTER: hier kommt Leons Gewinnerbild hin -->
|
||||||
|
<img src="assets/images_gsbJqmtaUiOBBzMKyXW2P7s.jpg" alt="Gewinnerbild 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>
|
||||||
|
<canvas class="konfetti" id="konfetti"></canvas>
|
||||||
|
|
||||||
|
<!-- Weißer Verlauf: lässt das Vollbild unten in die Landung auslaufen -->
|
||||||
|
<div class="landung-verlauf" id="landung-verlauf" aria-hidden="true"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ==================== NORMALE STARTSEITE (Landung) ====================
|
<!-- ==================== NORMALE STARTSEITE (Landung) ====================
|
||||||
@@ -290,7 +291,7 @@
|
|||||||
|
|
||||||
<script src="custom/vendor/canvas-confetti.min.js"></script>
|
<script src="custom/vendor/canvas-confetti.min.js"></script>
|
||||||
<script src="custom/auto-player.js"></script>
|
<script src="custom/auto-player.js"></script>
|
||||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script><script src="custom/transitions.js"></script>
|
||||||
<script src="custom/seo-config.js"></script>
|
<script src="custom/seo-config.js"></script>
|
||||||
<script src="custom/seo.js"></script>
|
<script src="custom/seo.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in new issue
Block a user