diff --git a/public/custom/auto-player.js b/public/custom/auto-player.js index f5789ea..a22e262 100644 --- a/public/custom/auto-player.js +++ b/public/custom/auto-player.js @@ -99,7 +99,19 @@ }); } - // PHASEN (Task 4–5 füllen): Sinkflug, Preis, Halten, Wachstum, Landung. + // Phase Sinkflug (16.0 – 19.0): Kamera sinkt quadratisch, Welt zieht hoch weg. + if (t >= T.flugEnd && t < T.sinkEnd) { + var sinkT = (t - T.flugEnd) / (T.sinkEnd - T.flugEnd); + if (buehne) buehne.style.transform = 'translateY(' + (sinkT * sinkT * 190) + 'px)'; + } + // Phase Preis-Moment 1 (19.0 – 22.0): Gewinnerbild steigt, Text-Banner rein. + if (t >= T.sinkEnd && t < T.preisEnd) { + var p = (t - T.sinkEnd) / (T.preisEnd - T.sinkEnd), e = easeOutCubic(p); + if (preis) preis.style.opacity = clamp01(e); + if (preisBild) preisBild.style.transform = 'translateY(' + lerp(38, 0, e) + 'vh) scale(' + lerp(0.92, 1.0, e) + ')'; + if (preisText) preisText.style.opacity = clamp01(e); + } + // Phase Halten (22.0 – 27.0): nichts tweenen – Vollbild + Text stehen. // Konfetti (Spec §2): Burst 1 bei 20.0 s, Burst 2 bei 22.5 s. if (!burst1 && t >= 20.0) { burst1 = true; burst(90, 0.35); }