Pages Hard
Travel Experience
Immersive travel booking experience with a scroll-driven 3D airplane flight path and animated destination reveals.
three.jsgsaplenisscrolltriggerscrambletext
Targets: JS HTML
Code
:root {
--page-bg: #0b1628;
--page-surface: #101e36;
--page-border: #1a3050;
--page-text: #e8f0ff;
--page-muted: #7a8da8;
--page-accent: #00c2ff;
--page-accent-warm: #ff8c42;
--page-cloud: #2a4068;
--page-sky-top: #0a1020;
--page-sky-mid: #1a3060;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--page-bg);
color: var(--page-text);
font-family: 'SF Pro Display', 'Inter', system-ui, -apple-system, sans-serif;
line-height: 1.6;
overflow-x: hidden;
}
/* ── Canvas Container ── */
#canvas-container {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
}
/* ── Sections ── */
.section {
position: relative;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 6rem 2rem;
z-index: 1;
}
/* ══════════════════════════════════════════════════════════════════════
HERO
══════════════════════════════════════════════════════════════════════ */
.hero-section {
position: relative;
overflow: hidden;
background: linear-gradient(
180deg,
var(--page-sky-top) 0%,
var(--page-sky-mid) 40%,
var(--page-bg) 100%
);
}
/* Decorative cloud layers */
.hero-clouds {
position: absolute;
inset: 0;
pointer-events: none;
}
.hero-clouds::before {
content: '';
position: absolute;
top: 20%;
left: -10%;
width: 55%;
height: 30%;
background: radial-gradient(
ellipse at center,
rgba(42, 64, 104, 0.25) 0%,
transparent 70%
);
border-radius: 50%;
filter: blur(40px);
}
.hero-clouds::after {
content: '';
position: absolute;
top: 40%;
right: -5%;
width: 45%;
height: 25%;
background: radial-gradient(
ellipse at center,
rgba(42, 64, 104, 0.2) 0%,
transparent 70%
);
border-radius: 50%;
filter: blur(50px);
}
.hero-content {
position: relative;
z-index: 1;
text-align: center;
}
.hero-title {
font-size: clamp(2.8rem, 10vw, 7rem);
font-weight: 700;
color: #ffffff;
line-height: 1;
letter-spacing: -0.02em;
text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
margin-bottom: 1.5rem;
}
.hero-subtitle {
font-size: clamp(0.9rem, 2.5vw, 1.25rem);
color: var(--page-muted);
font-weight: 400;
letter-spacing: 0.04em;
opacity: 0;
min-height: 1.8em;
}
.scroll-indicator {
margin-top: 3rem;
color: var(--page-accent);
opacity: 0;
animation: scroll-float 2.5s ease-in-out infinite;
}
@keyframes scroll-float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(8px); }
}
.reduced-motion .scroll-indicator { animation: none; }
/* ══════════════════════════════════════════════════════════════════════
FLIGHT TRACK (scroll spacer)
══════════════════════════════════════════════════════════════════════ */
.flight-track {
position: relative;
height: 600vh;
z-index: 0;
}
.flight-section {
height: 150vh;
position: relative;
}
/* ══════════════════════════════════════════════════════════════════════
DESTINATION CARDS (fixed overlay)
══════════════════════════════════════════════════════════════════════ */
.dest-card {
position: fixed;
right: 4rem;
top: 50%;
transform: translateY(-50%);
z-index: 2;
width: 280px;
background: rgba(16, 30, 54, 0.92);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--page-border);
border-radius: 16px;
padding: 0;
overflow: hidden;
opacity: 0;
pointer-events: none;
}
.dest-card.visible {
pointer-events: auto;
}
.dest-thumb {
width: 100%;
height: 140px;
position: relative;
overflow: hidden;
}
/* ── CSS Landscape Thumbnails ── */
/* Tokyo: Neon cityscape */
.thumb-tokyo {
background: linear-gradient(
180deg,
#1a1030 0%,
#2a1848 30%,
#3a2060 50%,
#1a1830 80%,
#0a0818 100%
);
}
.thumb-tokyo::before {
content: '';
position: absolute;
bottom: 0;
left: 5%;
width: 90%;
height: 65%;
background: #0e0a1a;
clip-path: polygon(
0% 100%, 0% 45%, 3% 45%, 3% 30%, 7% 30%, 7% 15%, 10% 15%, 10% 25%,
14% 25%, 14% 10%, 18% 10%, 18% 35%, 22% 35%, 22% 20%, 26% 20%, 26% 5%,
30% 5%, 30% 30%, 34% 30%, 34% 40%, 38% 40%, 38% 12%, 42% 12%, 42% 28%,
46% 28%, 46% 18%, 50% 18%, 50% 8%, 54% 8%, 54% 32%, 58% 32%, 58% 22%,
62% 22%, 62% 38%, 66% 38%, 66% 14%, 70% 14%, 70% 25%, 74% 25%, 74% 35%,
78% 35%, 78% 20%, 82% 20%, 82% 30%, 86% 30%, 86% 42%, 90% 42%, 90% 15%,
94% 15%, 94% 38%, 98% 38%, 98% 50%, 100% 50%, 100% 100%
);
}
.thumb-tokyo::after {
content: '';
position: absolute;
bottom: 0;
left: 5%;
width: 90%;
height: 55%;
background:
radial-gradient(circle 1.5px at 8% 30%, #ff40d6 0%, transparent 100%),
radial-gradient(circle 1.5px at 15% 50%, #00c2ff 0%, transparent 100%),
radial-gradient(circle 1.5px at 22% 20%, #ffcc66 0%, transparent 100%),
radial-gradient(circle 1px at 30% 60%, #ff40d6 0%, transparent 100%),
radial-gradient(circle 1.5px at 38% 35%, #00c2ff 0%, transparent 100%),
radial-gradient(circle 1px at 45% 15%, #ffcc66 0%, transparent 100%),
radial-gradient(circle 1.5px at 52% 45%, #ff40d6 0%, transparent 100%),
radial-gradient(circle 1px at 60% 25%, #00c2ff 0%, transparent 100%),
radial-gradient(circle 1.5px at 68% 55%, #ffcc66 0%, transparent 100%),
radial-gradient(circle 1px at 75% 30%, #ff40d6 0%, transparent 100%),
radial-gradient(circle 1.5px at 82% 40%, #00c2ff 0%, transparent 100%),
radial-gradient(circle 1px at 90% 20%, #ffcc66 0%, transparent 100%);
}
/* Santorini: White domes + blue sea */
.thumb-santorini {
background: linear-gradient(
180deg,
#4a8fcc 0%,
#6bb3e8 35%,
#2a6fa0 55%,
#1a5580 100%
);
}
.thumb-santorini::before {
content: '';
position: absolute;
bottom: 15%;
left: 10%;
width: 80%;
height: 55%;
background: #f0f0f0;
clip-path: polygon(
0% 100%, 0% 60%, 5% 55%, 10% 50%, 12% 30%, 16% 30%, 18% 50%,
22% 48%, 25% 25%, 30% 20%, 35% 25%, 38% 45%, 42% 42%, 45% 15%,
50% 10%, 55% 15%, 58% 40%, 62% 38%, 65% 30%, 70% 28%, 75% 35%,
78% 50%, 82% 48%, 85% 40%, 90% 45%, 95% 55%, 100% 60%, 100% 100%
);
}
.thumb-santorini::after {
content: '';
position: absolute;
bottom: 38%;
left: 25%;
width: 50%;
height: 20%;
background:
radial-gradient(ellipse 8px 10px at 20% 50%, #3a7fc0 0%, #3a7fc0 85%, transparent 100%),
radial-gradient(ellipse 8px 10px at 50% 40%, #3a7fc0 0%, #3a7fc0 85%, transparent 100%),
radial-gradient(ellipse 8px 10px at 80% 55%, #3a7fc0 0%, #3a7fc0 85%, transparent 100%);
}
/* Machu Picchu: Misty mountain ruins */
.thumb-machu {
background: linear-gradient(
180deg,
#e8e0d0 0%,
#c8c0a8 15%,
#6a8c4a 40%,
#4a7030 55%,
#3a5a28 70%,
#2a4020 100%
);
}
.thumb-machu::before {
content: '';
position: absolute;
bottom: 10%;
left: 0;
width: 100%;
height: 70%;
background: linear-gradient(160deg, #5a7840 0%, #3a5828 50%, #2a4520 100%);
clip-path: polygon(
0% 100%, 0% 70%, 10% 55%, 20% 40%, 30% 20%, 40% 5%, 50% 10%,
55% 25%, 60% 15%, 70% 0%, 80% 18%, 85% 30%, 90% 22%, 95% 40%,
100% 50%, 100% 100%
);
}
.thumb-machu::after {
content: '';
position: absolute;
bottom: 25%;
left: 20%;
width: 60%;
height: 30%;
background: #8a7858;
clip-path: polygon(
5% 100%, 5% 70%, 10% 65%, 15% 60%, 15% 40%, 20% 40%, 20% 55%,
25% 55%, 25% 35%, 30% 35%, 30% 50%, 40% 50%, 40% 30%, 45% 30%,
45% 45%, 55% 45%, 55% 25%, 60% 25%, 60% 40%, 70% 40%, 70% 55%,
75% 55%, 75% 35%, 80% 35%, 80% 60%, 85% 65%, 90% 70%, 95% 75%,
95% 100%
);
opacity: 0.6;
}
/* Reykjavik: Aurora + glacier */
.thumb-reykjavik {
background: linear-gradient(
180deg,
#0a0a20 0%,
#0a1530 25%,
#102040 50%,
#1a3050 70%,
#d0d8e8 85%,
#e8f0ff 100%
);
}
.thumb-reykjavik::before {
content: '';
position: absolute;
top: 10%;
left: 0;
width: 100%;
height: 40%;
background: linear-gradient(
90deg,
transparent 0%,
rgba(0, 194, 255, 0.15) 20%,
rgba(80, 255, 120, 0.2) 40%,
rgba(0, 194, 255, 0.18) 60%,
rgba(80, 255, 120, 0.12) 80%,
transparent 100%
);
filter: blur(8px);
border-radius: 50%;
transform: rotate(-5deg);
}
.thumb-reykjavik::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 35%;
background: linear-gradient(180deg, #b8c8d8 0%, #d8e4f0 50%, #e8f0ff 100%);
clip-path: polygon(
0% 100%, 0% 50%, 8% 35%, 15% 25%, 22% 40%, 30% 20%, 38% 30%,
45% 15%, 52% 28%, 58% 10%, 65% 22%, 72% 35%, 78% 18%, 85% 30%,
92% 40%, 100% 25%, 100% 100%
);
}
.dest-name {
font-size: 1.5rem;
font-weight: 700;
color: var(--page-text);
padding: 1.25rem 1.5rem 0.25rem;
letter-spacing: -0.01em;
}
.dest-country {
display: block;
font-size: 0.75rem;
font-weight: 500;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--page-accent);
padding: 0 1.5rem;
}
.dest-tagline {
font-size: 0.9rem;
color: var(--page-muted);
padding: 0.75rem 1.5rem 1.5rem;
line-height: 1.5;
}
/* ══════════════════════════════════════════════════════════════════════
DESTINATIONS GRID
══════════════════════════════════════════════════════════════════════ */
.grid-section {
background: var(--page-bg);
padding: 8rem 2rem;
}
.grid-heading {
font-size: clamp(2rem, 6vw, 3.5rem);
font-weight: 700;
text-align: center;
margin-bottom: 4rem;
color: var(--page-text);
letter-spacing: -0.02em;
}
.destinations-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
max-width: 960px;
width: 100%;
margin: 0 auto;
}
.grid-card {
background: var(--page-surface);
border: 1px solid var(--page-border);
border-radius: 16px;
overflow: hidden;
opacity: 0;
transform: translateY(40px) scale(0.95);
transition: box-shadow 0.3s ease, transform 0.3s ease;
cursor: default;
}
.grid-card:hover {
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
transform: translateY(-4px) scale(1);
}
.reduced-motion .grid-card {
opacity: 1;
transform: none;
}
.reduced-motion .grid-card:hover {
transform: none;
}
.grid-thumb {
width: 100%;
height: 180px;
position: relative;
overflow: hidden;
}
/* Grid uses same landscape compositions as dest-card thumbs */
.grid-tokyo { background: linear-gradient(180deg, #1a1030 0%, #2a1848 30%, #3a2060 50%, #1a1830 80%, #0a0818 100%); }
.grid-tokyo::before {
content: '';
position: absolute;
bottom: 0;
left: 5%;
width: 90%;
height: 65%;
background: #0e0a1a;
clip-path: polygon(
0% 100%, 0% 45%, 3% 45%, 3% 30%, 7% 30%, 7% 15%, 10% 15%, 10% 25%,
14% 25%, 14% 10%, 18% 10%, 18% 35%, 22% 35%, 22% 20%, 26% 20%, 26% 5%,
30% 5%, 30% 30%, 34% 30%, 34% 40%, 38% 40%, 38% 12%, 42% 12%, 42% 28%,
46% 28%, 46% 18%, 50% 18%, 50% 8%, 54% 8%, 54% 32%, 58% 32%, 58% 22%,
62% 22%, 62% 38%, 66% 38%, 66% 14%, 70% 14%, 70% 25%, 74% 25%, 74% 35%,
78% 35%, 78% 20%, 82% 20%, 82% 30%, 86% 30%, 86% 42%, 90% 42%, 90% 15%,
94% 15%, 94% 38%, 98% 38%, 98% 50%, 100% 50%, 100% 100%
);
}
.grid-tokyo::after {
content: '';
position: absolute;
bottom: 0;
left: 5%;
width: 90%;
height: 55%;
background:
radial-gradient(circle 2px at 12% 35%, #ff40d6 0%, transparent 100%),
radial-gradient(circle 2px at 25% 50%, #00c2ff 0%, transparent 100%),
radial-gradient(circle 2px at 38% 25%, #ffcc66 0%, transparent 100%),
radial-gradient(circle 2px at 52% 55%, #ff40d6 0%, transparent 100%),
radial-gradient(circle 2px at 65% 30%, #00c2ff 0%, transparent 100%),
radial-gradient(circle 2px at 78% 45%, #ffcc66 0%, transparent 100%),
radial-gradient(circle 2px at 88% 20%, #ff40d6 0%, transparent 100%);
}
.grid-santorini { background: linear-gradient(180deg, #4a8fcc 0%, #6bb3e8 35%, #2a6fa0 55%, #1a5580 100%); }
.grid-santorini::before {
content: '';
position: absolute;
bottom: 15%;
left: 10%;
width: 80%;
height: 55%;
background: #f0f0f0;
clip-path: polygon(
0% 100%, 0% 60%, 5% 55%, 10% 50%, 12% 30%, 16% 30%, 18% 50%,
22% 48%, 25% 25%, 30% 20%, 35% 25%, 38% 45%, 42% 42%, 45% 15%,
50% 10%, 55% 15%, 58% 40%, 62% 38%, 65% 30%, 70% 28%, 75% 35%,
78% 50%, 82% 48%, 85% 40%, 90% 45%, 95% 55%, 100% 60%, 100% 100%
);
}
.grid-machu { background: linear-gradient(180deg, #e8e0d0 0%, #c8c0a8 15%, #6a8c4a 40%, #4a7030 55%, #3a5a28 70%, #2a4020 100%); }
.grid-machu::before {
content: '';
position: absolute;
bottom: 10%;
left: 0;
width: 100%;
height: 70%;
background: linear-gradient(160deg, #5a7840 0%, #3a5828 50%, #2a4520 100%);
clip-path: polygon(
0% 100%, 0% 70%, 10% 55%, 20% 40%, 30% 20%, 40% 5%, 50% 10%,
55% 25%, 60% 15%, 70% 0%, 80% 18%, 85% 30%, 90% 22%, 95% 40%,
100% 50%, 100% 100%
);
}
.grid-reykjavik { background: linear-gradient(180deg, #0a0a20 0%, #0a1530 25%, #102040 50%, #1a3050 70%, #d0d8e8 85%, #e8f0ff 100%); }
.grid-reykjavik::before {
content: '';
position: absolute;
top: 10%;
left: 0;
width: 100%;
height: 40%;
background: linear-gradient(
90deg,
transparent 0%,
rgba(0, 194, 255, 0.15) 20%,
rgba(80, 255, 120, 0.2) 40%,
rgba(0, 194, 255, 0.18) 60%,
rgba(80, 255, 120, 0.12) 80%,
transparent 100%
);
filter: blur(8px);
border-radius: 50%;
}
.grid-reykjavik::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 35%;
background: linear-gradient(180deg, #b8c8d8 0%, #d8e4f0 50%, #e8f0ff 100%);
clip-path: polygon(
0% 100%, 0% 50%, 8% 35%, 15% 25%, 22% 40%, 30% 20%, 38% 30%,
45% 15%, 52% 28%, 58% 10%, 65% 22%, 72% 35%, 78% 18%, 85% 30%,
92% 40%, 100% 25%, 100% 100%
);
}
.grid-card-body {
padding: 1.5rem;
}
.grid-card-title {
font-size: 1.25rem;
font-weight: 700;
color: var(--page-text);
margin-bottom: 0.5rem;
letter-spacing: -0.01em;
}
.grid-card-desc {
font-size: 0.9rem;
color: var(--page-muted);
line-height: 1.6;
}
/* ══════════════════════════════════════════════════════════════════════
CTA
══════════════════════════════════════════════════════════════════════ */
.cta-section {
position: relative;
overflow: hidden;
background: linear-gradient(
180deg,
var(--page-bg) 0%,
var(--page-sky-top) 100%
);
}
.cta-orb {
position: absolute;
border-radius: 50%;
filter: blur(80px);
pointer-events: none;
}
.cta-orb-1 {
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(0, 194, 255, 0.15) 0%, transparent 70%);
top: 10%;
left: -5%;
}
.cta-orb-2 {
width: 350px;
height: 350px;
background: radial-gradient(circle, rgba(255, 140, 66, 0.12) 0%, transparent 70%);
bottom: 5%;
right: -5%;
}
.cta-content {
position: relative;
z-index: 1;
text-align: center;
}
.cta-heading {
font-size: clamp(2.5rem, 8vw, 5rem);
font-weight: 700;
color: var(--page-text);
line-height: 1.1;
letter-spacing: -0.02em;
margin-bottom: 1rem;
}
.cta-subtitle {
font-size: clamp(1rem, 2.5vw, 1.3rem);
color: var(--page-muted);
margin-bottom: 2.5rem;
opacity: 0;
}
.cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.btn {
padding: 0.85rem 2rem;
border-radius: 10px;
font-family: inherit;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
opacity: 0;
transform: translateY(15px);
}
.btn:hover {
transform: translateY(-2px);
}
.reduced-motion .btn {
opacity: 1;
transform: none;
}
.reduced-motion .btn:hover {
transform: none;
}
.btn-primary {
background: var(--page-accent);
color: var(--page-bg);
border: none;
box-shadow: 0 4px 20px rgba(0, 194, 255, 0.3);
}
.btn-primary:hover {
box-shadow: 0 8px 32px rgba(0, 194, 255, 0.4);
}
.btn-secondary {
background: transparent;
color: var(--page-accent);
border: 1.5px solid var(--page-accent);
}
.btn-secondary:hover {
background: rgba(0, 194, 255, 0.08);
}
/* ══════════════════════════════════════════════════════════════════════
REDUCED MOTION
══════════════════════════════════════════════════════════════════════ */
.reduced-motion .hero-subtitle {
opacity: 1;
}
.reduced-motion .scroll-indicator {
opacity: 1;
}
.reduced-motion .dest-card {
opacity: 0;
}
.reduced-motion .cta-subtitle {
opacity: 1;
}
/* ══════════════════════════════════════════════════════════════════════
RESPONSIVE
══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
.section {
padding: 4rem 1.25rem;
}
.dest-card {
right: auto;
left: 1rem;
right: 1rem;
top: auto;
bottom: 2rem;
transform: none;
width: auto;
max-width: 360px;
margin: 0 auto;
}
.dest-thumb {
height: 100px;
}
.destinations-grid {
grid-template-columns: 1fr;
}
.flight-track {
height: 400vh;
}
.flight-section {
height: 100vh;
}
.grid-section {
padding: 5rem 1.25rem;
}
.cta-orb-1 {
width: 250px;
height: 250px;
}
.cta-orb-2 {
width: 200px;
height: 200px;
}
}
@media (max-width: 480px) {
.hero-title {
font-size: clamp(2rem, 12vw, 3.5rem);
}
.dest-card {
left: 0.75rem;
right: 0.75rem;
bottom: 1.5rem;
}
.grid-heading {
font-size: 1.8rem;
}
.cta-heading {
font-size: 2rem;
}
}Travel Experience
Immersive travel booking experience with a scroll-driven 3D airplane flight path and animated destination reveals.
Source
- Repository:
libs-genclaude - Original demo id:
26-travel-experience
Notes
Immersive travel booking experience with a scroll-driven 3D airplane flight path and animated destination reveals.