feat: Sinkflug und Preis-Moment im Auto-Player
This commit is contained in:
1 parent
f03b1c6ee0
commit
5438cf12d3
1 file changed
+13
-1
@@ -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.
|
// 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); }
|
if (!burst1 && t >= 20.0) { burst1 = true; burst(90, 0.35); }
|
||||||
|
|||||||
Reference in new issue
Block a user