<style>
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;700&display=swap');
*{margin:0;padding:0;box-sizing:border-box;}
.hero{
position:relative;width:100%;height:480px;overflow:hidden;
background:#050810;font-family:'Inter',sans-serif;cursor:default;
}
.era-bg{
position:absolute;inset:0;transition:background 1.8s ease;
}
.pitch{
position:absolute;bottom:0;left:0;right:0;height:200px;
transition:opacity 0.8s ease;
}
.particles{position:absolute;inset:0;pointer-events:none;}
.p{position:absolute;border-radius:50%;pointer-events:none;}
.scan-line{
position:absolute;inset:0;pointer-events:none;
background:repeating-linear-gradient(0deg,transparent,transparent 3px,rgba(0,0,0,0.03) 3px,rgba(0,0,0,0.03) 4px);
opacity:0;transition:opacity 1s ease;
}
.film-grain{
position:absolute;inset:0;pointer-events:none;opacity:0;
transition:opacity 1s ease;
}
.vignette{
position:absolute;inset:0;pointer-events:none;
background:radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.era-overlay{
position:absolute;inset:0;
background:linear-gradient(to right, rgba(0,0,0,0.82) 45%, rgba(0,0,0,0.2) 100%);
}
.content{
position:absolute;left:52px;top:50%;transform:translateY(-50%);
z-index:10;max-width:420px;
}
.era-label{
font-size:11px;letter-spacing:5px;text-transform:uppercase;
color:#f0a500;margin-bottom:12px;font-weight:700;
opacity:0;transform:translateY(10px);
transition:opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.era-year{
font-family:'Bebas Neue',sans-serif;font-size:96px;line-height:0.9;
color:#fff;margin-bottom:4px;
opacity:0;transform:translateY(20px);
transition:opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.era-host{
font-size:13px;letter-spacing:3px;text-transform:uppercase;
color:rgba(255,255,255,0.5);margin-bottom:6px;
opacity:0;transition:opacity 0.6s ease 0.3s;
}
.era-title{
font-family:'Bebas Neue',sans-serif;font-size:38px;line-height:1.1;
color:#fff;margin-bottom:18px;
opacity:0;transform:translateY(14px);
transition:opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}
.era-fact{
font-size:13px;color:rgba(255,255,255,0.6);line-height:1.6;
border-left:2px solid #f0a500;padding-left:14px;
opacity:0;transform:translateY(10px);
transition:opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}
.era-winner{
display:inline-block;margin-top:10px;
background:rgba(240,165,0,0.15);border:1px solid rgba(240,165,0,0.4);
padding:5px 14px;font-size:11px;letter-spacing:3px;text-transform:uppercase;
color:#f0a500;
opacity:0;transition:opacity 0.6s ease 0.65s;
}
.in .era-label,.in .era-year,.in .era-host,.in .era-title,.in .era-fact,.in .era-winner{
opacity:1;transform:translateY(0);
}
.timeline{
position:absolute;bottom:28px;left:0;right:0;
display:flex;align-items:center;justify-content:center;
gap:6px;z-index:10;
}
.tl-dot{
width:6px;height:6px;border-radius:50%;
background:rgba(255,255,255,0.25);cursor:pointer;
transition:all 0.3s ease;
}
.tl-dot.active{
background:#f0a500;width:22px;border-radius:3px;
}
.tl-dot:hover{background:rgba(255,255,255,0.6);}
.era-number{
position:absolute;right:52px;top:50%;transform:translateY(-50%);
font-family:'Bebas Neue',sans-serif;font-size:180px;
color:rgba(255,255,255,0.04);line-height:1;
pointer-events:none;z-index:1;
transition:opacity 0.6s ease;letter-spacing:-4px;
}
.trophy-icon{
position:absolute;right:14%;top:50%;transform:translateY(-60%);
z-index:5;opacity:0;transition:opacity 0.8s ease 0.4s;
}
.trophy-icon.in{opacity:1;}
.nav{
position:absolute;top:0;left:0;right:0;
display:flex;align-items:center;padding:18px 52px;
z-index:20;background:linear-gradient(to bottom,rgba(0,0,0,0.5),transparent);
}
.nav-logo{
color:#fff;font-family:'Bebas Neue',sans-serif;font-size:22px;
letter-spacing:2px;margin-right:auto;margin-left:auto;
text-align:center;
}
.nav-link{
color:rgba(255,255,255,0.6);font-size:11px;letter-spacing:2px;
text-transform:uppercase;cursor:pointer;transition:color 0.2s;
}
.nav-link:hover{color:#fff;}
.progress-bar{
position:absolute;bottom:0;left:0;height:2px;
background:#f0a500;transition:width 0.1s linear;z-index:20;
}
.player-silhouette{
position:absolute;bottom:80px;right:22%;
opacity:0;transition:opacity 1s ease 0.3s;
z-index:4;
}
.player-silhouette.in{opacity:0.18;}
.era-counter{
position:absolute;top:22px;right:52px;
font-size:11px;letter-spacing:2px;color:rgba(255,255,255,0.35);
z-index:20;font-family:'Inter',sans-serif;
}
</style>
<h2 class="sr-only">World Cup through the ages — animated hero cycling through FIFA World Cup eras from 1930 to 2026</h2>
<div class="hero" id="hero">
<div class="era-bg" id="eraBg"></div>
<svg class="pitch" id="pitch" viewBox="0 0 800 200" preserveAspectRatio="xMidYMax meet" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="400" cy="200" rx="380" ry="160" stroke="rgba(255,255,255,0.08)" stroke-width="1.2" fill="none"/>
<ellipse cx="400" cy="200" rx="220" ry="110" stroke="rgba(255,255,255,0.06)" stroke-width="1.2" fill="none"/>
<ellipse cx="400" cy="200" rx="70" ry="40" stroke="rgba(255,255,255,0.06)" stroke-width="1.2" fill="none"/>
<line x1="400" y1="40" x2="400" y2="200" stroke="rgba(255,255,255,0.05)" stroke-width="1.2"/>
<line x1="20" y1="150" x2="780" y2="150" stroke="rgba(255,255,255,0.05)" stroke-width="1.2"/>
</svg>
<div class="scan-line" id="scanLine"></div>
<div class="film-grain" id="filmGrain"></div>
<div class="particles" id="particles"></div>
<div class="vignette"></div>
<div class="era-overlay"></div>
<nav class="nav">
<span class="nav-link">Teams</span>
<div style="flex:1"></div>
<div class="nav-logo">FIFA World Cup</div>
<div style="flex:1"></div>
<span class="nav-link">Shop</span>
</nav>
<div class="era-number" id="eraBigNum"></div>
<svg class="player-silhouette" id="playerSil" width="160" height="220" viewBox="0 0 160 220" xmlns="http://www.w3.org/2000/svg"></svg>
<div class="trophy-icon" id="trophyIcon">
<svg width="80" height="130" viewBox="0 0 80 130" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M40 6C56 6 68 18 68 34C68 50 56 62 46 70L46 96L56 106L56 116L24 116L24 106L34 96L34 70C24 62 12 50 12 34C12 18 24 6 40 6Z" fill="rgba(240,165,0,0.6)"/>
<path d="M12 28L2 18L2 44L12 40Z" fill="rgba(240,165,0,0.4)"/>
<path d="M68 28L78 18L78 44L68 40Z" fill="rgba(240,165,0,0.4)"/>
<rect x="24" y="116" width="32" height="5" rx="2" fill="rgba(240,165,0,0.5)"/>
<rect x="18" y="121" width="44" height="8" rx="2" fill="rgba(240,165,0,0.4)"/>
<circle cx="40" cy="34" r="12" fill="rgba(248,216,96,0.5)" stroke="rgba(240,165,0,0.6)" stroke-width="1"/>
</svg>
</div>
<div class="content" id="content">
<div class="era-label" id="eraLabel"></div>
<div class="era-year" id="eraYear"></div>
<div class="era-host" id="eraHost"></div>
<div class="era-title" id="eraTitle"></div>
<div class="era-fact" id="eraFact"></div>
<div class="era-winner" id="eraWinner"></div>
</div>
<div class="era-counter" id="eraCounter"></div>
<div class="timeline" id="timeline"></div>
<div class="progress-bar" id="progressBar"></div>
</div>
<script>
const eras = [
{
year:"1930",host:"Uruguay",title:"Where it all began",
fact:"The very first World Cup. Only 13 nations made the journey — most Europeans refused to sail across the Atlantic. Uruguay, the hosts, lifted the trophy in front of 93,000 fans.",
winner:"Uruguay",label:"The birth of football's greatest stage",
bg:"#1a0e05",pitch:"rgba(80,50,20,0.3)",accent:"#c8780a",
vintage:true,
player:"M70 30 Q75 20 80 30 Q85 20 90 30 L88 55 L92 100 L85 100 L82 70 L78 100 L72 100 L75 70 L70 55Z M75 58 L65 75 L68 77 L76 64Z M85 58 L95 75 L92 77 L84 64Z"
},
{
year:"1950",host:"Brazil",title:"The Maracanazo",
fact:"Brazil built the 200,000-seat Maracanã for this tournament. In a stunning final-round upset, Uruguay beat Brazil on home soil in front of the biggest crowd ever to watch a football match.",
winner:"Uruguay",label:"The shock heard around the world",
bg:"#0d1a08",pitch:"rgba(30,70,20,0.35)",accent:"#3a9e2f",
vintage:true,
player:"M70 28 Q75 18 80 28 Q85 18 90 28 L88 52 L94 98 L87 98 L83 68 L79 98 L71 98 L75 68 L72 52Z M77 55 L66 74 L69 76 L78 62Z M83 55 L94 74 L91 76 L82 62Z"
},
{
year:"1966",host:"England",title:"Football comes home",
fact:"England won their only World Cup on home soil at Wembley. Geoff Hurst's hat-trick in the final against West Germany remains one of football's most iconic moments.",
winner:"England",label:"Wembley's finest hour",
bg:"#0a0e1a",pitch:"rgba(20,30,70,0.3)",accent:"#4a6fcf",
vintage:false,
player:"M68 26 Q74 14 80 26 Q86 14 92 26 L90 54 L96 102 L88 102 L84 70 L80 102 L72 102 L76 70 L70 54Z M76 58 L63 78 L67 81 L77 66Z M84 58 L97 78 L93 81 L83 66Z"
},
{
year:"1970",host:"Mexico",title:"The beautiful game",
fact:"Widely regarded as the greatest World Cup ever played. Brazil's squad — with Pelé, Jairzinho, Tostão and Rivelino — played football so beautiful that FIFA awarded them the Jules Rimet trophy permanently.",
winner:"Brazil",label:"Pelé and Brazil's golden generation",
bg:"#1a0505",pitch:"rgba(80,15,15,0.3)",accent:"#cf4a2f",
vintage:false,
player:"M66 24 Q73 11 80 24 Q87 11 94 24 L92 56 L99 106 L90 106 L86 72 L80 106 L70 106 L74 72 L68 56Z M74 60 L60 82 L65 85 L76 68Z M86 60 L100 82 L95 85 L84 68Z"
},
{
year:"1986",host:"Mexico",title:"The hand of God",
fact:"Diego Maradona single-handedly carried Argentina to the title. In the quarterfinal against England, he scored two of the most famous goals in history within four minutes of each other.",
winner:"Argentina",label:"Maradona's tournament",
bg:"#120518",pitch:"rgba(50,10,60,0.3)",accent:"#9e3fcf",
vintage:false,
player:"M67 22 Q74 9 80 22 Q86 9 93 22 L91 54 L98 108 L89 108 L85 70 L80 108 L71 108 L75 70 L69 54Z M75 58 L61 80 L66 83 L77 66Z M85 58 L99 80 L94 83 L83 66Z"
},
{
year:"1994",host:"USA",title:"Football invades America",
fact:"The USA hosted for the first time, shattering attendance records that still stand today. Brazil won their fourth title on penalties against Italy in a final decided by Roberto Baggio's heartbreaking miss.",
winner:"Brazil",label:"Record crowds, golden football",
bg:"#00111a",pitch:"rgba(0,50,80,0.3)",accent:"#0f8fcf",
vintage:false,
player:"M67 22 Q73 10 80 22 Q87 10 93 22 L91 54 L97 106 L89 106 L84 72 L80 106 L71 106 L76 72 L69 54Z M75 57 L61 79 L66 82 L77 65Z M85 57 L99 79 L94 82 L83 65Z"
},
{
year:"2002",host:"Korea/Japan",title:"Giant killers",
fact:"The first World Cup in Asia delivered the greatest upsets ever seen. Senegal, South Korea and Turkey all defied the odds. Brazil won a record fifth title with a devastating front three of Ronaldo, Ronaldinho and Rivaldo.",
winner:"Brazil",label:"Asia rewrites history",
bg:"#001a10",pitch:"rgba(0,70,40,0.3)",accent:"#0fcf6e",
vintage:false,
player:"M66 22 Q73 10 80 22 Q87 10 94 22 L92 56 L98 108 L90 108 L85 72 L80 108 L70 108 L75 72 L68 56Z M75 60 L61 82 L66 85 L77 68Z M85 60 L99 82 L94 85 L83 68Z"
},
{
year:"2010",host:"South Africa",title:"Africa's moment",
fact:"The African continent hosted the World Cup for the first time. The vuvuzela became its unforgettable soundtrack. Spain won their first ever title with a 1-0 victory over the Netherlands — the third different winner in as many finals.",
winner:"Spain",label:"Viva Africa. Viva España.",
bg:"#1a0a00",pitch:"rgba(80,40,0,0.3)",accent:"#cf8a0f",
vintage:false,
player:"M67 22 Q73 10 80 22 Q87 10 93 22 L91 55 L97 106 L89 106 L84 72 L80 106 L71 106 L76 72 L69 55Z M75 58 L61 80 L66 83 L77 66Z M85 58 L99 80 L94 83 L83 66Z"
},
{
year:"2018",host:"Russia",title:"The age of the superstar",
fact:"France became world champions for the second time with a squad full of young stars. Kylian Mbappé became the second teenager ever to score in a World Cup final, following Pelé in 1958.",
winner:"France",label:"Mbappé announces himself to the world",
bg:"#0a0014",pitch:"rgba(30,0,60,0.3)",accent:"#6a0fcf",
vintage:false,
player:"M66 20 Q73 8 80 20 Q87 8 94 20 L92 54 L99 108 L90 108 L85 70 L80 108 L70 108 L75 70 L67 54Z M75 58 L60 80 L65 83 L76 66Z M85 58 L100 80 L95 83 L84 66Z"
},
{
year:"2026",host:"USA · Canada · Mexico",title:"The world united",
fact:"For the first time, three nations co-host the World Cup. 48 teams compete across 16 cities in North America. The biggest World Cup in history — and a new era for the beautiful game.",
winner:"Coming soon",label:"The greatest show on Earth returns",
bg:"#050810",pitch:"rgba(20,30,80,0.3)",accent:"#f0a500",
vintage:false,
player:"M65 20 Q73 6 80 20 Q87 6 95 20 L93 56 L100 112 L90 112 L86 72 L80 112 L70 112 L74 72 L67 56Z M75 60 L59 84 L65 87 L77 68Z M85 60 L101 84 L95 87 L83 68Z"
}
];
let current = 0;
let timer = null;
let progress = 0;
const DURATION = 6000;
const TICK = 80;
const hero = document.getElementById('hero');
const eraBg = document.getElementById('eraBg');
const content = document.getElementById('content');
const eraLabel = document.getElementById('eraLabel');
const eraYear = document.getElementById('eraYear');
const eraHost = document.getElementById('eraHost');
const eraTitle = document.getElementById('eraTitle');
const eraFact = document.getElementById('eraFact');
const eraWinner = document.getElementById('eraWinner');
const eraBigNum = document.getElementById('eraBigNum');
const trophyIcon = document.getElementById('trophyIcon');
const playerSil = document.getElementById('playerSil');
const scanLine = document.getElementById('scanLine');
const filmGrain = document.getElementById('filmGrain');
const progressBar = document.getElementById('progressBar');
const timelineEl = document.getElementById('timeline');
const eraCounter = document.getElementById('eraCounter');
const particlesEl = document.getElementById('particles');
eras.forEach((_, i) => {
const dot = document.createElement('div');
dot.className = 'tl-dot' + (i === 0 ? ' active' : '');
dot.onclick = () => goTo(i);
timelineEl.appendChild(dot);
});
function buildParticles(era) {
particlesEl.innerHTML = '';
const count = era.year === '2026' ? 30 : 10;
for (let i = 0; i < count; i++) {
const p = document.createElement('div');
p.className = 'p';
const size = 2 + Math.random() * 3;
const color = era.year === '2026'
? (Math.random() > 0.5 ? '#f0a500' : '#fff')
: 'rgba(255,255,255,0.4)';
p.style.cssText = `
width:${size}px;height:${size}px;
background:${color};
left:${Math.random()*100}%;
top:${Math.random()*100}%;
animation: fall ${3 + Math.random()*5}s ${Math.random()*4}s linear infinite;
opacity:${0.2 + Math.random()*0.5};
`;
particlesEl.appendChild(p);
}
}
const fallKf = document.createElement('style');
fallKf.textContent = `@keyframes fall{0%{transform:translateY(-10px) rotate(0deg);opacity:0;}10%{opacity:1;}90%{opacity:0.8;}100%{transform:translateY(500px) rotate(720deg);opacity:0;}}`;
document.head.appendChild(fallKf);
function goTo(idx) {
clearInterval(timer);
content.classList.remove('in');
trophyIcon.classList.remove('in');
playerSil.classList.remove('in');
setTimeout(() => {
current = idx;
const era = eras[idx];
eraBg.style.background = `radial-gradient(ellipse 140% 90% at 60% 100%, ${era.pitch} 0%, ${era.bg} 60%)`;
eraLabel.textContent = era.label;
eraYear.textContent = era.year;
eraHost.textContent = era.host;
eraTitle.textContent = era.title;
eraFact.textContent = era.fact;
eraWinner.textContent = era.winner === 'Coming soon' ? 'Coming soon' : `Champions: ${era.winner}`;
eraBigNum.textContent = era.year;
eraBigNum.style.color = `${era.accent}08`;
scanLine.style.opacity = era.vintage ? '1' : '0';
filmGrain.style.opacity = era.vintage ? '0.04' : '0';
playerSil.innerHTML = `<path d="${era.player}" fill="white"/>`;
document.querySelectorAll('.tl-dot').forEach((d, i) => {
d.classList.toggle('active', i === idx);
});
eraCounter.textContent = `${idx + 1} / ${eras.length}`;
buildParticles(era);
content.classList.add('in');
trophyIcon.classList.add('in');
playerSil.classList.add('in');
progress = 0;
progressBar.style.width = '0%';
startTimer();
}, 400);
}
function startTimer() {
timer = setInterval(() => {
progress += TICK;
const pct = Math.min((progress / DURATION) * 100, 100);
progressBar.style.width = pct + '%';
if (progress >= DURATION) {
goTo((current + 1) % eras.length);
}
}, TICK);
}
goTo(0);
</script>