feat: Intro „Fokus" (Schärfeverlagerung) ersetzt Tiefenflug
- Scroll-basiertes Intro: Held-Bild zieht in die Schärfe, Scrollen wechselt eine 5-Bild-Serie (Schärfeverlagerung), monochromes HUD mit Belichtungs- daten/Bildunterschrift, Fortschrittslinie, Fokus-Klammern. - fokus.css/fokus.js neu; LANDUNG-Block 1:1 aus tiefenflug.css übernommen. - Klasse .flug-strecke erhalten (transitions.js erkennt Intro weiterhin). - tiefenflug.css/tiefenflug.js entfernt, canvas-confetti-Scripttag raus. - Fallbacks: .kein-js und prefers-reduced-motion blenden Intro aus. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
f3a471c0cf
commit
f1b140d65a
5 files changed
+349
-522
No files matched your search
@@ -0,0 +1,200 @@
|
|||||||
|
/* fokus.css – NUR Startseiten-spezifisch: Landung + Fokus-Intro.
|
||||||
|
Ersetzt tiefenflug.css. Geteilte Basis-Styles (Topbar, Dock, Typo, Buttons,
|
||||||
|
Footer …) stehen weiterhin in site.css. index.html bindet beide Dateien ein.
|
||||||
|
|
||||||
|
Hinweis: Der LANDUNG-Block ist 1:1 aus tiefenflug.css übernommen, damit die
|
||||||
|
normale Startseite unter dem Intro unverändert aussieht. Neu ist nur der
|
||||||
|
FOKUS-INTRO-Block (ersetzt den früheren TIEFENFLUG-INTRO-Block). */
|
||||||
|
|
||||||
|
/* ==================== LANDUNG (normale Startseite) ==================== */
|
||||||
|
|
||||||
|
.landung .hero { padding: 90px 0 40px; }
|
||||||
|
.landung .hero h1 {
|
||||||
|
font-size: clamp(40px, 6vw, 72px);
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: -0.05em;
|
||||||
|
line-height: 1.05;
|
||||||
|
margin: 18px 0 18px;
|
||||||
|
}
|
||||||
|
.landung .hero .gedaempft { max-width: 560px; }
|
||||||
|
|
||||||
|
.zeilen { padding-bottom: 90px; }
|
||||||
|
.zeile {
|
||||||
|
display: flex; justify-content: space-between; align-items: baseline;
|
||||||
|
border-top: 1px solid var(--linie);
|
||||||
|
padding: 22px 0;
|
||||||
|
color: var(--text-leise);
|
||||||
|
font-size: 16px;
|
||||||
|
transition: color 0.2s ease-out;
|
||||||
|
}
|
||||||
|
.zeile b { color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -0.04em; }
|
||||||
|
.zeile:hover { color: var(--text); }
|
||||||
|
|
||||||
|
/* ==================== FOKUS-INTRO ====================
|
||||||
|
Vollbild-Heldenbild, das beim Laden in die Schärfe zieht; beim Scrollen
|
||||||
|
wechselt die Bildserie (Schärfeverlagerung). Monochrome HUD-Schicht über
|
||||||
|
dem Foto – Farbe kommt nur aus den Bildern. Logik in custom/fokus.js. */
|
||||||
|
|
||||||
|
.fokus-strecke { height: 560vh; position: relative; }
|
||||||
|
|
||||||
|
.fokus-buehne {
|
||||||
|
position: sticky; top: 0;
|
||||||
|
height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #0a0a0a; /* hinter dem Foto; Foto deckt komplett */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Foto + Wrapper (Wrapper trägt die dezente Eigenbewegung, Foto die Schärfe) */
|
||||||
|
.fokus-bildwrap { position: absolute; inset: 0; will-change: transform; }
|
||||||
|
.fokus-bild {
|
||||||
|
position: absolute; inset: 0;
|
||||||
|
width: 100%; height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
filter: blur(16px); /* Startzustand vor dem ersten Scharfziehen (JS übernimmt) */
|
||||||
|
will-change: filter, transform, opacity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Leichte Abdunklung an den Rändern – hält die weiße HUD-Schrift lesbar */
|
||||||
|
.fokus-vignette {
|
||||||
|
position: absolute; inset: 0; pointer-events: none;
|
||||||
|
background: radial-gradient(125% 125% at 50% 42%, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fokus-hud {
|
||||||
|
position: absolute; inset: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
color: #fff;
|
||||||
|
will-change: opacity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fokus-Klammern in der Mitte (rasten beim Laden ein) */
|
||||||
|
.fokus-rahmen {
|
||||||
|
position: absolute; top: 50%; left: 50%;
|
||||||
|
width: clamp(130px, 28vmin, 420px);
|
||||||
|
height: clamp(130px, 28vmin, 420px);
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
animation: fokusKlammer 1.4s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
|
||||||
|
}
|
||||||
|
.fokus-rahmen span {
|
||||||
|
position: absolute; width: 18%; height: 18%;
|
||||||
|
border: 0 solid rgba(255, 255, 255, 0.95);
|
||||||
|
}
|
||||||
|
.fokus-rahmen .tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
|
||||||
|
.fokus-rahmen .tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
|
||||||
|
.fokus-rahmen .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
|
||||||
|
.fokus-rahmen .br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
|
||||||
|
@keyframes fokusKlammer {
|
||||||
|
from { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
|
||||||
|
to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Marke oben links */
|
||||||
|
.fokus-marke {
|
||||||
|
position: absolute;
|
||||||
|
top: clamp(22px, 5vmin, 52px); left: clamp(22px, 5vmin, 56px);
|
||||||
|
animation: fokusHoch 0.9s 1s both;
|
||||||
|
}
|
||||||
|
.fokus-marke .name {
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: clamp(20px, 4.6vmin, 54px);
|
||||||
|
line-height: 1; letter-spacing: 0.004em;
|
||||||
|
}
|
||||||
|
.fokus-marke .sub {
|
||||||
|
margin-top: 1.6vmin;
|
||||||
|
font-family: "Fragment Mono", monospace;
|
||||||
|
font-size: clamp(8px, 1.5vmin, 13px);
|
||||||
|
letter-spacing: 0.26em;
|
||||||
|
color: rgba(255, 255, 255, 0.82);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Belichtungsdaten + Bildunterschrift unten links */
|
||||||
|
.fokus-meta {
|
||||||
|
position: absolute;
|
||||||
|
left: clamp(22px, 5vmin, 56px); bottom: clamp(26px, 6vmin, 56px);
|
||||||
|
animation: fokusHoch 0.9s 1.15s both;
|
||||||
|
}
|
||||||
|
.fokus-meta .expo {
|
||||||
|
font-family: "Fragment Mono", monospace;
|
||||||
|
font-size: clamp(9px, 1.8vmin, 15px);
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
}
|
||||||
|
.fokus-meta .cap {
|
||||||
|
margin-top: 1.4vmin;
|
||||||
|
font-family: "Fragment Mono", monospace;
|
||||||
|
font-size: clamp(8px, 1.45vmin, 12px);
|
||||||
|
line-height: 1.4; letter-spacing: 0.07em;
|
||||||
|
color: rgba(255, 255, 255, 0.66);
|
||||||
|
max-width: 62vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* „Fokus gesetzt" unten rechts */
|
||||||
|
.fokus-lock {
|
||||||
|
position: absolute;
|
||||||
|
right: clamp(22px, 5vmin, 56px); bottom: clamp(26px, 6vmin, 56px);
|
||||||
|
display: flex; align-items: center; gap: 1.5vmin;
|
||||||
|
animation: fokusEin 1s 1.35s both;
|
||||||
|
}
|
||||||
|
.fokus-lock .punkt {
|
||||||
|
width: 1.4vmin; height: 1.4vmin; min-width: 7px; min-height: 7px;
|
||||||
|
border-radius: 50%; background: #fff;
|
||||||
|
box-shadow: 0 0 9px rgba(255, 255, 255, 0.9);
|
||||||
|
animation: fokusBlinken 1.7s infinite;
|
||||||
|
}
|
||||||
|
.fokus-lock .text {
|
||||||
|
font-family: "Fragment Mono", monospace;
|
||||||
|
font-size: clamp(8px, 1.5vmin, 13px);
|
||||||
|
letter-spacing: 0.18em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Scroll-Hinweis unten Mitte */
|
||||||
|
.fokus-hinweis {
|
||||||
|
position: absolute; left: 50%; bottom: clamp(18px, 3.5vmin, 40px);
|
||||||
|
transform: translateX(-50%);
|
||||||
|
display: flex; flex-direction: column; align-items: center; gap: 0.9vmin;
|
||||||
|
color: rgba(255, 255, 255, 0.85);
|
||||||
|
transition: opacity 0.4s ease-out;
|
||||||
|
animation: fokusScroll 1.9s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
.fokus-hinweis .wort {
|
||||||
|
font-family: "Fragment Mono", monospace;
|
||||||
|
font-size: clamp(7px, 1.3vmin, 11px);
|
||||||
|
letter-spacing: 0.34em;
|
||||||
|
}
|
||||||
|
.fokus-hinweis .pfeil { font-size: clamp(12px, 2.2vmin, 18px); line-height: 1; }
|
||||||
|
|
||||||
|
/* Dünne Fortschrittslinie am unteren Rand */
|
||||||
|
.fokus-fortschritt {
|
||||||
|
position: absolute; left: 0; bottom: 0;
|
||||||
|
width: 100%; height: 2px;
|
||||||
|
background: rgba(255, 255, 255, 0.16);
|
||||||
|
}
|
||||||
|
.fokus-fortschritt span {
|
||||||
|
display: block; height: 100%; width: 0;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fokusHoch { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
|
||||||
|
@keyframes fokusEin { from { opacity: 0; } to { opacity: 1; } }
|
||||||
|
@keyframes fokusBlinken { 0%, 48% { opacity: 1; } 50%, 100% { opacity: 0.12; } }
|
||||||
|
@keyframes fokusScroll {
|
||||||
|
0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
|
||||||
|
50% { transform: translateX(-50%) translateY(7px); opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==================== FALLBACKS ====================
|
||||||
|
- .kein-js: steht im HTML, fokus.js entfernt sie; ohne JS bleibt sie stehen
|
||||||
|
und das Intro wird ausgeblendet (Besucher sieht direkt die Startseite).
|
||||||
|
- .ohne-intro: setzt fokus.js bei prefers-reduced-motion. */
|
||||||
|
|
||||||
|
.kein-js .fokus-strecke,
|
||||||
|
.ohne-intro .fokus-strecke { display: none; }
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.fokus-rahmen, .fokus-marke, .fokus-meta, .fokus-lock,
|
||||||
|
.fokus-hinweis, .fokus-lock .punkt { animation: none; }
|
||||||
|
.fokus-bild { filter: none; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 760px) {
|
||||||
|
.fokus-strecke { height: 480vh; }
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
// Steuert das Intro „Fokus" auf index.html (ersetzt „Tiefenflug").
|
||||||
|
//
|
||||||
|
// Prinzip: Die Seite hat oben eine hohe Scroll-Strecke (#flug-strecke) mit
|
||||||
|
// festgehefteter (sticky) Bühne. Der Scroll-Fortschritt (0..1) zieht nach-
|
||||||
|
// einander die besten Bilder in die Schärfe (Schärfeverlagerung wie an einer
|
||||||
|
// Profikamera): unscharf + leicht vergrößert hinein, dann sauber scharf.
|
||||||
|
// Belichtungsdaten und Bildunterschrift wechseln mit. Am Ende blendet die
|
||||||
|
// HUD-Schicht aus und die Strecke gibt die normale Startseite frei.
|
||||||
|
//
|
||||||
|
// Werte/Charakter an docs/style-tokens.md ausgerichtet (Einblenden ~0.4 s,
|
||||||
|
// große Auftritte mit „ease-out": schnell rein, weich ankommen).
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// JS läuft → Fallback-Klasse entfernen (CSS blendet das Intro sonst aus)
|
||||||
|
document.documentElement.classList.remove('kein-js');
|
||||||
|
|
||||||
|
var strecke = document.getElementById('flug-strecke');
|
||||||
|
if (!strecke) return;
|
||||||
|
|
||||||
|
// Reduzierte Bewegung: Intro überspringen, normale Seite direkt zeigen
|
||||||
|
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
||||||
|
document.documentElement.classList.add('ohne-intro');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var bild = document.getElementById('fokus-bild');
|
||||||
|
var wrap = document.getElementById('fokus-bildwrap');
|
||||||
|
var hud = document.getElementById('fokus-hud');
|
||||||
|
var expo = document.getElementById('fokus-expo');
|
||||||
|
var cap = document.getElementById('fokus-cap');
|
||||||
|
var hinweis = document.getElementById('fokus-hinweis');
|
||||||
|
var bar = document.getElementById('fokus-bar');
|
||||||
|
|
||||||
|
// Bildserie des Intros. Leon tauscht später nur die Dateinamen + Texte –
|
||||||
|
// die Animation läuft unverändert weiter.
|
||||||
|
var BILDER = [
|
||||||
|
{ src: 'assets/images_0i8JnT02uuSvPhFfGu3HEuR9iw.jpg', cap: 'RANSFORD KÖNIGSDÖRFFER · HSV · 1. BUNDESLIGA', ex: '1/2000s · f/2.8 · ISO800 · 400mm' },
|
||||||
|
{ src: 'assets/images_HNzZXNv3swzd9BBXglhXh2VaIH4.jpg', cap: 'SLAM DUNK · WORLD UNIVERSITY GAMES', ex: '1/1600s · f/2.8 · ISO1600 · 200mm' },
|
||||||
|
{ src: 'assets/images_MZkgUjHC5X95ogvnQ76W0pUGgo.jpg', cap: 'CHOREO · VOLKSPARKSTADION · HAMBURGER SV', ex: '1/500s · f/4.0 · ISO3200 · 24mm' },
|
||||||
|
{ src: 'assets/images_28CetpAPO7FEloGfrxtGfC2LSIU.jpg', cap: 'TORJUBEL · FRAUEN-BUNDESLIGA', ex: '1/1250s · f/2.8 · ISO2000 · 135mm' },
|
||||||
|
{ src: 'assets/images_47wplBRD0TcqxkplziaIdw5IJT8.jpg', cap: 'FANKURVE · AUSWÄRTSSUPPORT', ex: '1/640s · f/2.8 · ISO2500 · 35mm' }
|
||||||
|
];
|
||||||
|
|
||||||
|
var BLUR = 16; // px Unschärfe am Anfang der Schärfeverlagerung
|
||||||
|
var BILD_ENDE = 0.85; // Anteil der Strecke, über den die Bilder laufen (Rest: HUD-Ausblendung)
|
||||||
|
var aktuell = -1; // aktuell scharfgestelltes Bild
|
||||||
|
var ticking = false;
|
||||||
|
|
||||||
|
function maxScroll() {
|
||||||
|
return strecke.offsetHeight - window.innerHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ein Bild in die Schärfe ziehen: unscharf/vergrößert setzen, dann weich scharf.
|
||||||
|
function scharfstellen(i) {
|
||||||
|
var b = BILDER[i];
|
||||||
|
if (!b || !bild) return;
|
||||||
|
bild.style.transition = 'none';
|
||||||
|
bild.style.filter = 'blur(' + BLUR + 'px)';
|
||||||
|
bild.style.transform = 'scale(1.06)';
|
||||||
|
bild.style.opacity = '0.45';
|
||||||
|
void bild.offsetWidth; // Reflow erzwingen, damit der Startzustand „sitzt"
|
||||||
|
bild.src = b.src;
|
||||||
|
bild.style.transition = 'filter 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease-out';
|
||||||
|
bild.style.filter = 'blur(0px)';
|
||||||
|
bild.style.transform = 'scale(1)';
|
||||||
|
bild.style.opacity = '1';
|
||||||
|
if (expo) expo.textContent = b.ex;
|
||||||
|
if (cap) cap.textContent = b.cap;
|
||||||
|
}
|
||||||
|
|
||||||
|
function zeichnen() {
|
||||||
|
var p = Math.min(Math.max(window.scrollY / maxScroll(), 0), 1);
|
||||||
|
|
||||||
|
if (bar) bar.style.width = (p * 100).toFixed(2) + '%';
|
||||||
|
if (hinweis) hinweis.style.opacity = p > 0.03 ? '0' : '';
|
||||||
|
// HUD blendet auf den letzten 10 % weich aus → sauberer Übergang in die Seite
|
||||||
|
if (hud) hud.style.opacity = p < 0.9 ? '1' : String(Math.max(0, 1 - (p - 0.9) / 0.1));
|
||||||
|
|
||||||
|
var pBild = Math.min(p / BILD_ENDE, 1);
|
||||||
|
var idx = Math.min(Math.floor(pBild * BILDER.length), BILDER.length - 1);
|
||||||
|
var teil = pBild * BILDER.length - idx; // 0..1 innerhalb des aktuellen Bildes
|
||||||
|
|
||||||
|
// Dezente Eigenbewegung des scharfen Bildes (langsamer „Ken Burns")
|
||||||
|
if (wrap) {
|
||||||
|
wrap.style.transform = 'scale(' + (1 + teil * 0.05).toFixed(4) + ') translateY(' + (teil * -2).toFixed(2) + '%)';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (idx !== aktuell) { aktuell = idx; scharfstellen(idx); }
|
||||||
|
}
|
||||||
|
|
||||||
|
window.addEventListener('scroll', function () {
|
||||||
|
if (ticking) return;
|
||||||
|
ticking = true;
|
||||||
|
requestAnimationFrame(function () { zeichnen(); ticking = false; });
|
||||||
|
}, { passive: true });
|
||||||
|
|
||||||
|
window.addEventListener('resize', zeichnen);
|
||||||
|
|
||||||
|
// Erststart: erstes Bild beim Laden scharfziehen, dann Stand zeichnen
|
||||||
|
aktuell = 0;
|
||||||
|
scharfstellen(0);
|
||||||
|
zeichnen();
|
||||||
|
})();
|
||||||
@@ -1,247 +0,0 @@
|
|||||||
/* tiefenflug.css – NUR Startseiten-spezifisch: Landung + Tiefenflug-Intro.
|
|
||||||
Geteilte Basis-Styles (Topbar, Dock, Typo, Buttons, Footer …) stehen in site.css.
|
|
||||||
index.html bindet beide Dateien ein. */
|
|
||||||
|
|
||||||
/* ==================== LANDUNG (normale Startseite) ==================== */
|
|
||||||
|
|
||||||
.landung .hero { padding: 90px 0 40px; }
|
|
||||||
.landung .hero h1 {
|
|
||||||
font-size: clamp(40px, 6vw, 72px);
|
|
||||||
font-weight: 600;
|
|
||||||
letter-spacing: -0.05em;
|
|
||||||
line-height: 1.05;
|
|
||||||
margin: 18px 0 18px;
|
|
||||||
}
|
|
||||||
.landung .hero .gedaempft { max-width: 560px; }
|
|
||||||
|
|
||||||
.zeilen { padding-bottom: 90px; }
|
|
||||||
.zeile {
|
|
||||||
display: flex; justify-content: space-between; align-items: baseline;
|
|
||||||
border-top: 1px solid var(--linie);
|
|
||||||
padding: 22px 0;
|
|
||||||
color: var(--text-leise);
|
|
||||||
font-size: 16px;
|
|
||||||
transition: color 0.2s ease-out;
|
|
||||||
}
|
|
||||||
.zeile b { color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -0.04em; }
|
|
||||||
.zeile:hover { color: var(--text); }
|
|
||||||
|
|
||||||
/* ==================== TIEFENFLUG-INTRO ==================== */
|
|
||||||
|
|
||||||
.flug-strecke { height: 640vh; position: relative; }
|
|
||||||
|
|
||||||
.flug-buehne {
|
|
||||||
position: sticky; top: 0;
|
|
||||||
height: 100vh;
|
|
||||||
overflow: hidden;
|
|
||||||
perspective: 800px;
|
|
||||||
perspective-origin: 50% 50%;
|
|
||||||
background: var(--bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Name als Umriss-Schrift hinter den Fotos */
|
|
||||||
.flug-name {
|
|
||||||
position: absolute; left: 50%; top: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: clamp(40px, 8vw, 110px);
|
|
||||||
letter-spacing: 18px;
|
|
||||||
white-space: nowrap;
|
|
||||||
color: transparent;
|
|
||||||
-webkit-text-stroke: 1.5px rgba(18, 18, 18, 0.28);
|
|
||||||
will-change: transform, opacity;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Verlaufs-Bilder: laufen weich ins Weiße aus, JS steuert die Deckkraft */
|
|
||||||
.geist {
|
|
||||||
position: absolute; top: 0; bottom: 0;
|
|
||||||
width: 52%; height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
opacity: 0;
|
|
||||||
will-change: opacity;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
.geist.links { left: 0; -webkit-mask-image: linear-gradient(to right, black 20%, transparent 95%); mask-image: linear-gradient(to right, black 20%, transparent 95%); }
|
|
||||||
.geist.rechts { right: 0; -webkit-mask-image: linear-gradient(to left, black 20%, transparent 95%); mask-image: linear-gradient(to left, black 20%, transparent 95%); }
|
|
||||||
|
|
||||||
/* Schwebende Fotos */
|
|
||||||
.flug-foto {
|
|
||||||
position: absolute; left: 50%; top: 50%;
|
|
||||||
width: clamp(180px, 22vw, 300px);
|
|
||||||
aspect-ratio: 3 / 2; /* Fallback bis das Bild geladen ist – JS setzt das echte Format */
|
|
||||||
transform-style: preserve-3d;
|
|
||||||
will-change: transform, opacity;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
/* Hochformat (vom JS erkannt): schmaler, damit das Foto nicht zu hoch wird */
|
|
||||||
.flug-foto.hochformat { width: clamp(150px, 16vw, 220px); }
|
|
||||||
.flug-foto img {
|
|
||||||
width: 100%; height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
border-radius: 4px;
|
|
||||||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
|
|
||||||
animation: schweben 5s ease-in-out infinite alternate;
|
|
||||||
}
|
|
||||||
.flug-foto:nth-child(2n) img { animation-delay: 1.3s; }
|
|
||||||
.flug-foto:nth-child(3n) img { animation-delay: 2.4s; }
|
|
||||||
@keyframes schweben {
|
|
||||||
from { transform: translateY(0); }
|
|
||||||
to { transform: translateY(-12px); }
|
|
||||||
}
|
|
||||||
|
|
||||||
.flug-hinweis {
|
|
||||||
position: absolute; bottom: 24px; left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
font-family: "Fragment Mono", monospace;
|
|
||||||
font-size: 13px;
|
|
||||||
letter-spacing: 3px;
|
|
||||||
color: #98a2b3;
|
|
||||||
animation: pulsieren 1.8s ease-in-out infinite;
|
|
||||||
}
|
|
||||||
@keyframes pulsieren { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
|
|
||||||
|
|
||||||
/* Preis-Moment (Gold nur hier – Akzent für die Auszeichnung) */
|
|
||||||
.preis {
|
|
||||||
position: absolute; inset: 0;
|
|
||||||
display: flex; flex-direction: column;
|
|
||||||
align-items: center; justify-content: center;
|
|
||||||
opacity: 0;
|
|
||||||
will-change: opacity, transform;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
.preis-bild { position: relative; }
|
|
||||||
.preis-bild img {
|
|
||||||
display: block;
|
|
||||||
width: min(560px, 70vw);
|
|
||||||
border-radius: var(--radius-karte);
|
|
||||||
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
|
|
||||||
}
|
|
||||||
/* Gold-Schriftzug: Verlauf wandert durch den Text */
|
|
||||||
.preis-text {
|
|
||||||
position: relative;
|
|
||||||
margin-top: 28px;
|
|
||||||
font-family: "Fragment Mono", monospace;
|
|
||||||
font-size: 14px;
|
|
||||||
letter-spacing: 3px;
|
|
||||||
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; }
|
|
||||||
|
|
||||||
/* Flug-Partikel: Staub, Lichtstreifen und Bokeh fliegen der Kamera entgegen */
|
|
||||||
.flug-partikel { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
|
|
||||||
.partikel {
|
|
||||||
position: absolute; left: 50%; top: 50%;
|
|
||||||
opacity: 0;
|
|
||||||
will-change: transform, opacity;
|
|
||||||
}
|
|
||||||
.partikel.staub { width: 5px; height: 5px; border-radius: 50%; background: rgba(102, 112, 133, 0.8); }
|
|
||||||
.partikel.staub.gold { background: rgba(201, 162, 39, 0.8); }
|
|
||||||
.partikel.streif { width: 42px; height: 2px; background: linear-gradient(to right, transparent, rgba(102, 112, 133, 0.6)); }
|
|
||||||
.partikel.bokeh {
|
|
||||||
width: 28px; height: 28px; border-radius: 50%;
|
|
||||||
background: radial-gradient(circle, rgba(201, 162, 39, 0.35), rgba(201, 162, 39, 0.03));
|
|
||||||
filter: blur(1px);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Name-Moment: Umriss-Buchstaben füllen sich nacheinander schwarz.
|
|
||||||
Das Füllen löst tiefenflug.js einmalig über die Klasse .gefuellt aus;
|
|
||||||
das Ein-/Ausblenden des Blocks steuert der Scroll-Fortschritt. */
|
|
||||||
.name-moment {
|
|
||||||
position: absolute; left: 50%; top: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: clamp(34px, 6vw, 84px);
|
|
||||||
letter-spacing: 8px;
|
|
||||||
white-space: nowrap;
|
|
||||||
opacity: 0;
|
|
||||||
will-change: opacity;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
.name-moment span {
|
|
||||||
color: transparent;
|
|
||||||
-webkit-text-stroke: 1.2px rgba(18, 18, 18, 0.4);
|
|
||||||
transition: color 0.45s ease-out, -webkit-text-stroke-color 0.45s ease-out;
|
|
||||||
}
|
|
||||||
.name-moment.gefuellt span { color: var(--text); -webkit-text-stroke-color: transparent; }
|
|
||||||
.name-moment span:nth-child(1) { transition-delay: 0.00s; }
|
|
||||||
.name-moment span:nth-child(2) { transition-delay: 0.10s; }
|
|
||||||
.name-moment span:nth-child(3) { transition-delay: 0.20s; }
|
|
||||||
.name-moment span:nth-child(4) { transition-delay: 0.30s; }
|
|
||||||
.name-moment span:nth-child(5) { transition-delay: 0.40s; }
|
|
||||||
.name-moment span:nth-child(6) { transition-delay: 0.50s; }
|
|
||||||
.name-moment span:nth-child(7) { transition-delay: 0.60s; }
|
|
||||||
.name-moment span:nth-child(8) { transition-delay: 0.70s; }
|
|
||||||
.name-moment span:nth-child(9) { transition-delay: 0.80s; }
|
|
||||||
.name-moment span:nth-child(10) { transition-delay: 0.90s; }
|
|
||||||
.name-moment span:nth-child(11) { transition-delay: 1.00s; }
|
|
||||||
.name-moment span:nth-child(12) { transition-delay: 1.10s; }
|
|
||||||
.name-moment span:nth-child(13) { transition-delay: 1.20s; }
|
|
||||||
.name-moment span:nth-child(14) { transition-delay: 1.30s; }
|
|
||||||
|
|
||||||
/* Vollbild-Übergang: Gewinnerbild wächst, Verlauf ins Weiße */
|
|
||||||
.preis-bild { will-change: transform; }
|
|
||||||
.preis-bild img { transition: border-radius 0.4s ease-out, box-shadow 0.4s ease-out; }
|
|
||||||
.preis.vollbild .preis-bild img { border-radius: 0; box-shadow: none; }
|
|
||||||
.landung-verlauf {
|
|
||||||
position: absolute; left: 0; right: 0; bottom: 0;
|
|
||||||
height: 30vh;
|
|
||||||
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
|
|
||||||
opacity: 0;
|
|
||||||
pointer-events: none;
|
|
||||||
z-index: 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ==================== FALLBACKS ====================
|
|
||||||
- .kein-js: steht im HTML und wird von tiefenflug.js entfernt;
|
|
||||||
ohne JS bleibt sie stehen und das Intro verschwindet.
|
|
||||||
- .ohne-intro: setzt tiefenflug.js bei prefers-reduced-motion.
|
|
||||||
- mobil: weniger schwebende Fotos (data-mobil="aus"). */
|
|
||||||
|
|
||||||
.kein-js .flug-strecke,
|
|
||||||
.ohne-intro .flug-strecke { display: none; }
|
|
||||||
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
|
||||||
.flug-foto img, .flug-hinweis,
|
|
||||||
.preis-text, .preis-text .rieseln { animation: none; }
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 760px) {
|
|
||||||
.flug-foto[data-mobil="aus"], .partikel[data-mobil="aus"] { display: none; }
|
|
||||||
.flug-strecke { height: 500vh; }
|
|
||||||
.flug-name { -webkit-text-stroke-width: 1px; }
|
|
||||||
}
|
|
||||||
@@ -1,206 +0,0 @@
|
|||||||
// Steuert das Intro „Tiefenflug" auf start-2.html.
|
|
||||||
//
|
|
||||||
// Prinzip: Die Seite hat oben eine hohe Scroll-Strecke (#flug-strecke) mit
|
|
||||||
// festgehefteter Bühne. Der Scroll-Fortschritt (0..1) wird in eine
|
|
||||||
// Kamerafahrt übersetzt: vorwärts (Z), seitliches Ausscheren (X, Sinus),
|
|
||||||
// am Ende Sinkflug (Y) hinab zum Preis-Moment. Werte/Dramaturgie laut Spec
|
|
||||||
// docs/superpowers/specs/2026-06-11-startseite-tiefenflug-design.md.
|
|
||||||
(function () {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
// JS läuft → Fallback-Klasse entfernen (CSS blendet das Intro sonst aus)
|
|
||||||
document.documentElement.classList.remove('kein-js');
|
|
||||||
|
|
||||||
var strecke = document.getElementById('flug-strecke');
|
|
||||||
if (!strecke) return;
|
|
||||||
|
|
||||||
// Reduzierte Bewegung: Intro überspringen, normale Seite direkt zeigen
|
|
||||||
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
|
||||||
document.documentElement.classList.add('ohne-intro');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var buehne = document.getElementById('flug-buehne');
|
|
||||||
var name = document.getElementById('flug-name');
|
|
||||||
var preis = document.getElementById('preis');
|
|
||||||
var hinweis = document.getElementById('flug-hinweis');
|
|
||||||
var nameMoment = document.getElementById('name-moment');
|
|
||||||
var nameGefuellt = false;
|
|
||||||
var preisBild = document.getElementById('preis-bild');
|
|
||||||
var preisText = document.getElementById('preis-text');
|
|
||||||
var verlauf = document.getElementById('landung-verlauf');
|
|
||||||
var geister = [].slice.call(buehne.querySelectorAll('.geist'));
|
|
||||||
var fotos = [].slice.call(buehne.querySelectorAll('.flug-foto'))
|
|
||||||
.filter(function (f) { return f.offsetParent !== null; }); // mobil ausgeblendete überspringen
|
|
||||||
var partikel = [].slice.call(buehne.querySelectorAll('.partikel'))
|
|
||||||
.filter(function (p) { return p.offsetParent !== null; });
|
|
||||||
|
|
||||||
// Bildformat übernehmen: Rahmen ans echte Seitenverhältnis des Fotos
|
|
||||||
// anpassen, damit Hochformat-Bilder nicht auf 3:2 zugeschnitten werden
|
|
||||||
fotos.forEach(function (foto) {
|
|
||||||
var bild = foto.querySelector('img');
|
|
||||||
if (!bild) return;
|
|
||||||
function formatSetzen() {
|
|
||||||
if (!bild.naturalWidth || !bild.naturalHeight) return;
|
|
||||||
foto.style.aspectRatio = bild.naturalWidth + ' / ' + bild.naturalHeight;
|
|
||||||
foto.classList.toggle('hochformat', bild.naturalHeight > bild.naturalWidth);
|
|
||||||
}
|
|
||||||
if (bild.complete) formatSetzen();
|
|
||||||
else bild.addEventListener('load', formatSetzen, { once: true });
|
|
||||||
});
|
|
||||||
|
|
||||||
var FLUG_TIEFE = 1650; // px, die die Kamera nach vorn fliegt
|
|
||||||
var FLUG_ENDE = 0.65; // Anteil der Strecke, bis zu dem die Kamerafahrt läuft
|
|
||||||
var ABSCHIED = [0.55, 0.65]; // Fotos räumen die Bühne (alles ausblenden)
|
|
||||||
var NAME_FENSTER = [0.65, 0.78]; // Name-Moment (Task 3)
|
|
||||||
var PREIS_START = 0.78; // ab hier steigt das Gewinnerbild auf
|
|
||||||
var VOLLBILD = [0.88, 1]; // Bild wächst ins Vollbild (Task 5)
|
|
||||||
var SCHWENK = 130; // px seitliches Ausscheren (rechts, dann links)
|
|
||||||
var SINKFLUG = 190; // px Sinkflug am Ende
|
|
||||||
var GEIST_FENSTER = [[0.08, 0.25], [0.25, 0.42], [0.42, 0.60]];
|
|
||||||
|
|
||||||
var eingerastet = false; // Feature: einmal durch = kein Rückflug bis zum Neuladen
|
|
||||||
var konfettiAb = false;
|
|
||||||
var mausX = 0, mausY = 0;
|
|
||||||
|
|
||||||
var kanone = null;
|
|
||||||
if (window.confetti) {
|
|
||||||
kanone = window.confetti.create(document.getElementById('konfetti'), { resize: true });
|
|
||||||
}
|
|
||||||
|
|
||||||
function maxScroll() {
|
|
||||||
return strecke.offsetHeight - window.innerHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dreiecksfenster: 0 → 1 → 0 zwischen von..bis (weich rein, weich raus)
|
|
||||||
function fenster01(p, von, bis) {
|
|
||||||
if (p <= von || p >= bis) return 0;
|
|
||||||
var t = (p - von) / (bis - von);
|
|
||||||
return t < 0.5 ? t * 2 : (1 - t) * 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
function zeichnen() {
|
|
||||||
var fortschritt = Math.min(window.scrollY / maxScroll(), 1);
|
|
||||||
var flug = Math.min(fortschritt / FLUG_ENDE, 1);
|
|
||||||
var kamZ = flug * FLUG_TIEFE;
|
|
||||||
|
|
||||||
// Flugbahn: rechts → links ausscheren (endet mittig), am Ende sinken
|
|
||||||
var kamX = Math.sin(flug * Math.PI * 2) * SCHWENK;
|
|
||||||
var sinkT = Math.max(0, (flug - 0.7) / 0.3);
|
|
||||||
var kamY = sinkT * sinkT * SINKFLUG;
|
|
||||||
var kurve = -kamX / SCHWENK * 2.5; // leichtes Gegen-Kippen in der Kurve
|
|
||||||
|
|
||||||
// Abschied: ab hier blenden alle Fotos unabhängig von ihrer Tiefe aus,
|
|
||||||
// damit der Preis-Moment auf komplett leerer Bühne stattfindet
|
|
||||||
var wegT = Math.max(0, Math.min((fortschritt - ABSCHIED[0]) / (ABSCHIED[1] - ABSCHIED[0]), 1));
|
|
||||||
|
|
||||||
fotos.forEach(function (foto) {
|
|
||||||
var z = parseFloat(foto.dataset.z) + kamZ;
|
|
||||||
var x = parseFloat(foto.dataset.x) - kamX + mausX * 14;
|
|
||||||
var y = parseFloat(foto.dataset.y) - kamY + mausY * 10;
|
|
||||||
var deckkraft = 1;
|
|
||||||
if (z > 260) deckkraft = Math.max(0, 1 - (z - 260) / 160); // passiert → ausblenden
|
|
||||||
deckkraft = Math.min(deckkraft, 1 - wegT); // Abschied: Bühne räumen
|
|
||||||
foto.style.opacity = deckkraft;
|
|
||||||
foto.style.visibility = deckkraft === 0 ? 'hidden' : 'visible';
|
|
||||||
foto.style.transform =
|
|
||||||
'translate(-50%, -50%) translate3d(' + x + 'px,' + y + 'px,' + z + 'px)' +
|
|
||||||
' rotateY(' + foto.dataset.kipp + 'deg) rotateZ(' + kurve + 'deg)';
|
|
||||||
});
|
|
||||||
|
|
||||||
// Partikel: gleiche Kamerafahrt wie die Fotos, leicht stärkere Parallaxe
|
|
||||||
partikel.forEach(function (teil) {
|
|
||||||
var z = parseFloat(teil.dataset.z) + kamZ;
|
|
||||||
var x = parseFloat(teil.dataset.x) - kamX * 1.2;
|
|
||||||
var y = parseFloat(teil.dataset.y) - kamY * 1.2;
|
|
||||||
var sicht = parseFloat(teil.dataset.op);
|
|
||||||
if (z > 200) sicht *= Math.max(0, 1 - (z - 200) / 140); // vorbeigeflogen
|
|
||||||
teil.style.opacity = sicht * (1 - wegT);
|
|
||||||
teil.style.transform =
|
|
||||||
'translate(-50%, -50%) translate3d(' + x + 'px,' + y + 'px,' + z + 'px)' +
|
|
||||||
(teil.dataset.w ? ' rotate(' + teil.dataset.w + 'deg)' : '');
|
|
||||||
});
|
|
||||||
|
|
||||||
// Name: Buchstabenabstand zieht sich zusammen, wächst leicht, Parallaxe
|
|
||||||
var abstand = 18 - flug * 16;
|
|
||||||
var deckkraftName = flug < 0.8 ? 1 : Math.max(0, 1 - (flug - 0.8) / 0.15);
|
|
||||||
name.style.letterSpacing = abstand + 'px';
|
|
||||||
name.style.opacity = deckkraftName;
|
|
||||||
name.style.transform =
|
|
||||||
'translate(-50%, -50%) translate(' + (-kamX * 0.35) + 'px,' + (-kamY * 0.35) + 'px)' +
|
|
||||||
' scale(' + (1 + flug * 0.35) + ')';
|
|
||||||
|
|
||||||
// Verlaufs-Bilder abwechselnd einblenden
|
|
||||||
geister.forEach(function (geist, i) {
|
|
||||||
var f = GEIST_FENSTER[i] || [0, 0];
|
|
||||||
geist.style.opacity = fenster01(fortschritt, f[0], f[1]) * 0.5;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Name-Moment: weich ein- und ausblenden, Füllen einmalig auslösen
|
|
||||||
var nameDa = fenster01(fortschritt, NAME_FENSTER[0], NAME_FENSTER[1]);
|
|
||||||
nameMoment.style.opacity = nameDa;
|
|
||||||
if (!nameGefuellt && fortschritt > NAME_FENSTER[0] + 0.02) {
|
|
||||||
nameGefuellt = true;
|
|
||||||
nameMoment.classList.add('gefuellt');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Preis-Moment: steigt von unten herauf, dann Konfetti
|
|
||||||
var preisDa = Math.max(0, Math.min((fortschritt - PREIS_START) / 0.06, 1));
|
|
||||||
var weich = 1 - Math.pow(1 - preisDa, 3); // ease-out
|
|
||||||
preis.style.opacity = preisDa;
|
|
||||||
preis.style.transform =
|
|
||||||
'translateY(' + ((1 - weich) * 38) + 'vh) scale(' + (0.92 + weich * 0.08) + ')';
|
|
||||||
if (preisDa >= 1 && !konfettiAb && kanone) {
|
|
||||||
konfettiAb = true;
|
|
||||||
kanone({ particleCount: 90, spread: 75, origin: { y: 0.35 },
|
|
||||||
colors: ['#c9a227', '#f3d27a', '#ffffff', '#121212'] });
|
|
||||||
setTimeout(function () {
|
|
||||||
kanone({ particleCount: 50, spread: 100, origin: { y: 0.3 },
|
|
||||||
colors: ['#c9a227', '#f3d27a', '#ffffff'] });
|
|
||||||
}, 350);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Vollbild: Bild wächst über den Viewport, der Schriftzug blendet
|
|
||||||
// aus, der weiße Verlauf holt die Landung herein
|
|
||||||
var vollT = Math.max(0, Math.min((fortschritt - VOLLBILD[0]) / (VOLLBILD[1] - VOLLBILD[0]), 1));
|
|
||||||
var weichVoll = 1 - Math.pow(1 - vollT, 3);
|
|
||||||
if (vollT > 0) {
|
|
||||||
var zielBreite = window.innerWidth / preisBild.offsetWidth;
|
|
||||||
var zielHoehe = window.innerHeight / preisBild.offsetHeight;
|
|
||||||
var ziel = Math.max(zielBreite, zielHoehe) * 1.02;
|
|
||||||
preisBild.style.transform = 'scale(' + (1 + (ziel - 1) * weichVoll) + ')';
|
|
||||||
} else {
|
|
||||||
preisBild.style.transform = '';
|
|
||||||
}
|
|
||||||
preis.classList.toggle('vollbild', vollT > 0.01);
|
|
||||||
preisText.style.opacity = Math.max(0, 1 - vollT * 2);
|
|
||||||
verlauf.style.opacity = vollT;
|
|
||||||
|
|
||||||
hinweis.style.opacity = fortschritt > 0.05 ? 0 : '';
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener('scroll', function () {
|
|
||||||
var max = maxScroll();
|
|
||||||
// Einrasten: Wer den Flug beendet hat, kommt höchstens bis zum
|
|
||||||
// Preis-Moment zurück – der Flug startet erst beim Neuladen wieder.
|
|
||||||
if (!eingerastet && window.scrollY >= max) eingerastet = true;
|
|
||||||
if (eingerastet && window.scrollY < max) {
|
|
||||||
window.scrollTo(0, max);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
zeichnen();
|
|
||||||
}, { passive: true });
|
|
||||||
|
|
||||||
window.addEventListener('resize', zeichnen);
|
|
||||||
|
|
||||||
// Maus-Parallaxe nur auf Geräten mit Zeiger
|
|
||||||
if (window.matchMedia('(pointer: fine)').matches) {
|
|
||||||
buehne.addEventListener('mousemove', function (e) {
|
|
||||||
mausX = e.clientX / window.innerWidth - 0.5;
|
|
||||||
mausY = e.clientY / window.innerHeight - 0.5;
|
|
||||||
zeichnen();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
zeichnen();
|
|
||||||
})();
|
|
||||||
+45
-69
@@ -50,79 +50,56 @@
|
|||||||
<link href="https://fonts.googleapis.com/css2?family=Fragment+Mono&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Fragment+Mono&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
<link rel="stylesheet" href="custom/site.css">
|
<link rel="stylesheet" href="custom/site.css">
|
||||||
<link rel="stylesheet" href="custom/tiefenflug.css">
|
<link rel="stylesheet" href="custom/fokus.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<!-- ==================== INTRO „TIEFENFLUG" ====================
|
<!-- ==================== INTRO „FOKUS" ====================
|
||||||
Eine hohe Scroll-Strecke mit festgehefteter (sticky) Bühne.
|
Eine hohe Scroll-Strecke mit festgehefteter (sticky) Bühne. Das Held-
|
||||||
Scrollen steuert den Flug; Logik in custom/tiefenflug.js. -->
|
Bild zieht beim Laden in die Schärfe; Scrollen wechselt die Bildserie
|
||||||
<div class="flug-strecke" id="flug-strecke" aria-hidden="true">
|
(Schärfeverlagerung). Logik in custom/fokus.js, Stil in custom/fokus.css.
|
||||||
<div class="flug-buehne" id="flug-buehne">
|
Die Klasse "flug-strecke" bleibt erhalten, damit transitions.js das
|
||||||
|
Intro weiterhin erkennt (Dock-Logik). -->
|
||||||
|
<div class="flug-strecke fokus-strecke" id="flug-strecke" aria-hidden="true">
|
||||||
|
<div class="fokus-buehne">
|
||||||
|
|
||||||
<img class="geist links" src="assets/images_ogzhxcKZoHWv2OWaCEbsi73XA.jpg" alt="" loading="lazy">
|
<div class="fokus-bildwrap" id="fokus-bildwrap">
|
||||||
<img class="geist rechts" src="assets/images_q0AZXsrtAE3iFcmON70ewZHqdvY.jpg" alt="" loading="lazy">
|
<img class="fokus-bild" id="fokus-bild" src="assets/images_0i8JnT02uuSvPhFfGu3HEuR9iw.jpg" alt="">
|
||||||
<img class="geist links" src="assets/images_QwfHCkpPLinsSAI5SjDYNNwjQQ.jpg" alt="" loading="lazy">
|
|
||||||
|
|
||||||
<!-- Flug-Partikel: Mix aus Staub, Lichtstreifen und Bokeh (Spec: Feinschliff).
|
|
||||||
data-*: Position im Raum wie bei den Fotos; data-op: Grunddeckkraft;
|
|
||||||
data-w: Drehwinkel (nur Streifen); data-mobil="aus": mobil ausgeblendet. -->
|
|
||||||
<div class="flug-partikel" aria-hidden="true">
|
|
||||||
<span class="partikel staub" data-x="-340" data-y="-150" data-z="80" data-op="0.7"></span>
|
|
||||||
<span class="partikel staub gold" data-x="300" data-y="90" data-z="-60" data-op="0.6"></span>
|
|
||||||
<span class="partikel streif" data-x="-180" data-y="160" data-z="-150" data-w="200" data-op="0.6"></span>
|
|
||||||
<span class="partikel staub" data-x="150" data-y="-200" data-z="-240" data-op="0.7" data-mobil="aus"></span>
|
|
||||||
<span class="partikel bokeh" data-x="-380" data-y="40" data-z="-330" data-op="0.5"></span>
|
|
||||||
<span class="partikel staub gold" data-x="420" data-y="-90" data-z="-420" data-op="0.6" data-mobil="aus"></span>
|
|
||||||
<span class="partikel staub" data-x="-120" data-y="-250" data-z="-510" data-op="0.8"></span>
|
|
||||||
<span class="partikel streif" data-x="260" data-y="200" data-z="-600" data-w="340" data-op="0.6" data-mobil="aus"></span>
|
|
||||||
<span class="partikel staub" data-x="-300" data-y="120" data-z="-690" data-op="0.7"></span>
|
|
||||||
<span class="partikel staub gold" data-x="80" data-y="240" data-z="-780" data-op="0.6" data-mobil="aus"></span>
|
|
||||||
<span class="partikel bokeh" data-x="360" data-y="-180" data-z="-870" data-op="0.45" data-mobil="aus"></span>
|
|
||||||
<span class="partikel staub" data-x="-420" data-y="-60" data-z="-960" data-op="0.7"></span>
|
|
||||||
<span class="partikel streif" data-x="140" data-y="-120" data-z="-1050" data-w="25" data-op="0.6"></span>
|
|
||||||
<span class="partikel staub" data-x="330" data-y="150" data-z="-1140" data-op="0.8" data-mobil="aus"></span>
|
|
||||||
<span class="partikel staub gold" data-x="-200" data-y="220" data-z="-1230" data-op="0.6"></span>
|
|
||||||
<span class="partikel staub" data-x="240" data-y="-240" data-z="-1320" data-op="0.7" data-mobil="aus"></span>
|
|
||||||
<span class="partikel bokeh" data-x="-80" data-y="-160" data-z="-1410" data-op="0.5" data-mobil="aus"></span>
|
|
||||||
<span class="partikel streif" data-x="-360" data-y="-200" data-z="-1480" data-w="155" data-op="0.6" data-mobil="aus"></span>
|
|
||||||
<span class="partikel staub" data-x="60" data-y="170" data-z="-1550" data-op="0.7"></span>
|
|
||||||
<span class="partikel staub gold" data-x="400" data-y="60" data-z="-1620" data-op="0.6" data-mobil="aus"></span>
|
|
||||||
<span class="partikel staub" data-x="-260" data-y="-110" data-z="-1700" data-op="0.7"></span>
|
|
||||||
<span class="partikel bokeh" data-x="180" data-y="110" data-z="-1780" data-op="0.5"></span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flug-name" id="flug-name">LEON TONHÄUSER</div>
|
|
||||||
|
|
||||||
<!-- Name-Moment: erscheint nach dem Abschied der Fotos, Buchstaben
|
|
||||||
füllen sich nacheinander (Spec Feinschliff, Variante C) -->
|
|
||||||
<div class="name-moment" id="name-moment" aria-hidden="true"><span>L</span><span>E</span><span>O</span><span>N</span><span> </span><span>T</span><span>O</span><span>N</span><span>H</span><span>Ä</span><span>U</span><span>S</span><span>E</span><span>R</span></div>
|
|
||||||
|
|
||||||
<!-- PLATZHALTER-Bilder: Leon tauscht die Dateinamen später aus.
|
|
||||||
data-*: Position im Raum (px relativ zur Mitte) und Kippwinkel. -->
|
|
||||||
<div class="flug-foto" data-x="-260" data-y="-90" data-z="0" data-kipp="22"><img src="assets/images_1o77aQT7L2L6kvAoCd1KVbSXrM.jpg" alt=""></div>
|
|
||||||
<div class="flug-foto" data-x="240" data-y="60" data-z="-180" data-kipp="-20"><img src="assets/images_1wmdMjlHScipMQIvGkOmNlaYo.jpg" alt=""></div>
|
|
||||||
<div class="flug-foto" data-x="-60" data-y="110" data-z="-380" data-kipp="12"><img src="assets/images_4KoP6h5jMH0NoxlYAmyzMnk5fh0.jpg" alt=""></div>
|
|
||||||
<div class="flug-foto" data-x="190" data-y="-120" data-z="-560" data-kipp="-14" data-mobil="aus"><img src="assets/images_5cRQmI7b7YMazENQ4an645dGk.jpg" alt=""></div>
|
|
||||||
<div class="flug-foto" data-x="-280" data-y="40" data-z="-760" data-kipp="24"><img src="assets/images_7VCGPR7DJ2AATwtn6b0Q7n0Yavw.jpg" alt=""></div>
|
|
||||||
<div class="flug-foto" data-x="90" data-y="-30" data-z="-950" data-kipp="-8" data-mobil="aus"><img src="assets/images_8KT4Ouc9FIKFEX6ffGD09IQJI.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="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>
|
</div>
|
||||||
<canvas class="konfetti" id="konfetti"></canvas>
|
|
||||||
|
|
||||||
<!-- Weißer Verlauf: lässt das Vollbild unten in die Landung auslaufen -->
|
<div class="fokus-vignette" aria-hidden="true"></div>
|
||||||
<div class="landung-verlauf" id="landung-verlauf" aria-hidden="true"></div>
|
|
||||||
|
<div class="fokus-hud" id="fokus-hud">
|
||||||
|
|
||||||
|
<div class="fokus-rahmen" aria-hidden="true">
|
||||||
|
<span class="tl"></span><span class="tr"></span>
|
||||||
|
<span class="bl"></span><span class="br"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="fokus-marke">
|
||||||
|
<div class="name">LEON TONHÄUSER</div>
|
||||||
|
<div class="sub">SPORT- & EVENTFOTOGRAFIE — HAMBURG</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="fokus-meta">
|
||||||
|
<div class="expo" id="fokus-expo">1/2000s · f/2.8 · ISO800 · 400mm</div>
|
||||||
|
<div class="cap" id="fokus-cap">RANSFORD KÖNIGSDÖRFFER · HSV · 1. BUNDESLIGA</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="fokus-lock">
|
||||||
|
<span class="punkt"></span>
|
||||||
|
<span class="text">FOCUS LOCKED</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="fokus-hinweis" id="fokus-hinweis">
|
||||||
|
<span class="wort">SCROLLEN</span>
|
||||||
|
<span class="pfeil">↓</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="fokus-fortschritt" aria-hidden="true"><span id="fokus-bar"></span></div>
|
||||||
|
|
||||||
<div class="flug-hinweis" id="flug-hinweis">SCROLLEN ↓</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -321,9 +298,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script src="custom/vendor/canvas-confetti.min.js"></script>
|
<script src="custom/fokus.js"></script>
|
||||||
<script src="custom/tiefenflug.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