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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>NOVA | Spatial Computing Interface</title>
|
| 7 |
+
|
| 8 |
+
<!-- Tailwind CSS -->
|
| 9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
+
|
| 11 |
+
<!-- Three.js -->
|
| 12 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
|
| 13 |
+
|
| 14 |
+
<!-- GSAP -->
|
| 15 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
|
| 16 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
|
| 17 |
+
|
| 18 |
+
<!-- Lenis Smooth Scroll -->
|
| 19 |
+
<script src="https://cdn.jsdelivr.net/gh/studio-freight/lenis@1.0.29/bundled/lenis.min.js"></script>
|
| 20 |
+
|
| 21 |
+
<!-- Fonts -->
|
| 22 |
+
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Syncopate:wght@400;700&display=swap" rel="stylesheet">
|
| 23 |
+
|
| 24 |
+
<style>
|
| 25 |
+
:root {
|
| 26 |
+
--neon-blue: #00f3ff;
|
| 27 |
+
--neon-purple: #bc13fe;
|
| 28 |
+
--glass: rgba(255, 255, 255, 0.05);
|
| 29 |
+
--glass-border: rgba(255, 255, 255, 0.1);
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
body {
|
| 33 |
+
font-family: 'Space Grotesk', sans-serif;
|
| 34 |
+
background-color: #050505;
|
| 35 |
+
color: #ffffff;
|
| 36 |
+
overflow-x: hidden;
|
| 37 |
+
cursor: none; /* Custom cursor */
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
h1, h2, h3, .font-syncopate {
|
| 41 |
+
font-family: 'Syncopate', sans-serif;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/* Custom Scrollbar */
|
| 45 |
+
::-webkit-scrollbar {
|
| 46 |
+
width: 6px;
|
| 47 |
+
}
|
| 48 |
+
::-webkit-scrollbar-track {
|
| 49 |
+
background: #000;
|
| 50 |
+
}
|
| 51 |
+
::-webkit-scrollbar-thumb {
|
| 52 |
+
background: var(--neon-blue);
|
| 53 |
+
border-radius: 3px;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/* Custom Cursor */
|
| 57 |
+
.cursor-dot,
|
| 58 |
+
.cursor-outline {
|
| 59 |
+
position: fixed;
|
| 60 |
+
top: 0;
|
| 61 |
+
left: 0;
|
| 62 |
+
transform: translate(-50%, -50%);
|
| 63 |
+
border-radius: 50%;
|
| 64 |
+
z-index: 9999;
|
| 65 |
+
pointer-events: none;
|
| 66 |
+
}
|
| 67 |
+
.cursor-dot {
|
| 68 |
+
width: 8px;
|
| 69 |
+
height: 8px;
|
| 70 |
+
background: white;
|
| 71 |
+
}
|
| 72 |
+
.cursor-outline {
|
| 73 |
+
width: 40px;
|
| 74 |
+
height: 40px;
|
| 75 |
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
| 76 |
+
transition: width 0.2s, height 0.2s, background-color 0.2s;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
/* Interactive Cursor States */
|
| 80 |
+
body.hovering .cursor-outline {
|
| 81 |
+
width: 60px;
|
| 82 |
+
height: 60px;
|
| 83 |
+
background: rgba(0, 243, 255, 0.1);
|
| 84 |
+
border-color: var(--neon-blue);
|
| 85 |
+
backdrop-filter: blur(2px);
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
/* Glassmorphism Utilities */
|
| 89 |
+
.glass-panel {
|
| 90 |
+
background: var(--glass);
|
| 91 |
+
backdrop-filter: blur(10px);
|
| 92 |
+
-webkit-backdrop-filter: blur(10px);
|
| 93 |
+
border: 1px solid var(--glass-border);
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.glass-panel-strong {
|
| 97 |
+
background: rgba(10, 10, 10, 0.7);
|
| 98 |
+
backdrop-filter: blur(20px);
|
| 99 |
+
-webkit-backdrop-filter: blur(20px);
|
| 100 |
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
| 101 |
+
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
/* 3D Text Effect */
|
| 105 |
+
.text-3d-layer {
|
| 106 |
+
position: absolute;
|
| 107 |
+
top: 0;
|
| 108 |
+
left: 0;
|
| 109 |
+
width: 100%;
|
| 110 |
+
height: 100%;
|
| 111 |
+
display: flex;
|
| 112 |
+
flex-direction: column;
|
| 113 |
+
justify-content: center;
|
| 114 |
+
align-items: center;
|
| 115 |
+
text-shadow:
|
| 116 |
+
1px 1px 0 rgba(188, 19, 254, 0.2),
|
| 117 |
+
2px 2px 0 rgba(188, 19, 254, 0.2),
|
| 118 |
+
3px 3px 0 rgba(188, 19, 254, 0.2),
|
| 119 |
+
4px 4px 0 rgba(188, 19, 254, 0.2),
|
| 120 |
+
5px 5px 0 rgba(188, 19, 254, 0.2),
|
| 121 |
+
6px 6px 0 rgba(188, 19, 254, 0.2);
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
/* Holographic Grid */
|
| 125 |
+
.holo-grid {
|
| 126 |
+
background-size: 40px 40px;
|
| 127 |
+
background-image:
|
| 128 |
+
linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
|
| 129 |
+
linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
|
| 130 |
+
mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
|
| 131 |
+
-webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
/* Slider Input Styling */
|
| 135 |
+
.holo-slider {
|
| 136 |
+
-webkit-appearance: none;
|
| 137 |
+
width: 100%;
|
| 138 |
+
height: 4px;
|
| 139 |
+
background: rgba(255,255,255,0.2);
|
| 140 |
+
border-radius: 2px;
|
| 141 |
+
outline: none;
|
| 142 |
+
}
|
| 143 |
+
.holo-slider::-webkit-slider-thumb {
|
| 144 |
+
-webkit-appearance: none;
|
| 145 |
+
appearance: none;
|
| 146 |
+
width: 20px;
|
| 147 |
+
height: 20px;
|
| 148 |
+
border-radius: 50%;
|
| 149 |
+
background: var(--neon-blue);
|
| 150 |
+
cursor: pointer;
|
| 151 |
+
box-shadow: 0 0 15px var(--neon-blue);
|
| 152 |
+
border: 2px solid white;
|
| 153 |
+
}
|
| 154 |
+
</style>
|
| 155 |
+
</head>
|
| 156 |
+
<body class="antialiased selection:bg-cyan-500 selection:text-black">
|
| 157 |
+
|
| 158 |
+
<!-- Custom Cursor Elements -->
|
| 159 |
+
<div class="cursor-dot"></div>
|
| 160 |
+
<div class="cursor-outline"></div>
|
| 161 |
+
|
| 162 |
+
<!-- Navigation -->
|
| 163 |
+
<nav class="fixed top-0 w-full z-50 px-6 py-4 flex justify-between items-center mix-blend-difference text-white">
|
| 164 |
+
<div class="text-2xl font-bold tracking-tighter hover-trigger" data-cursor="logo">
|
| 165 |
+
NOVA<span class="text-cyan-400">.OS</span>
|
| 166 |
+
</div>
|
| 167 |
+
<div class="hidden md:flex gap-8 text-sm font-medium uppercase tracking-widest">
|
| 168 |
+
<a href="#immersive" class="hover-trigger hover:text-cyan-400 transition-colors" data-cursor="link">Vision</a>
|
| 169 |
+
<a href="#comparison" class="hover-trigger hover:text-purple-400 transition-colors" data-cursor="link">Reality</a>
|
| 170 |
+
<a href="#data" class="hover-trigger hover:text-cyan-400 transition-colors" data-cursor="link">Signals</a>
|
| 171 |
+
</div>
|
| 172 |
+
<button class="px-6 py-2 border border-white/30 rounded-full hover:bg-white hover:text-black transition-all hover-trigger" data-cursor="button">
|
| 173 |
+
Initialize
|
| 174 |
+
</button>
|
| 175 |
+
</nav>
|
| 176 |
+
|
| 177 |
+
<!-- Hero Section: 3D WebGL Core -->
|
| 178 |
+
<section class="relative h-screen w-full overflow-hidden bg-black">
|
| 179 |
+
<!-- Canvas for 3D -->
|
| 180 |
+
<canvas id="hero-canvas" class="absolute inset-0 z-0"></canvas>
|
| 181 |
+
|
| 182 |
+
<!-- Overlay UI -->
|
| 183 |
+
<div class="absolute inset-0 z-10 flex flex-col justify-center items-center pointer-events-none">
|
| 184 |
+
<div class="text-center relative">
|
| 185 |
+
<div class="overflow-hidden">
|
| 186 |
+
<h1 class="hero-title text-6xl md:text-9xl font-bold uppercase tracking-tighter leading-none mix-blend-overlay text-transparent bg-clip-text bg-gradient-to-b from-white to-transparent opacity-0">
|
| 187 |
+
Beyond
|
| 188 |
+
</h1>
|
| 189 |
+
</div>
|
| 190 |
+
<div class="overflow-hidden">
|
| 191 |
+
<h1 class="hero-title text-6xl md:text-9xl font-bold uppercase tracking-tighter leading-none text-cyan-400 opacity-0">
|
| 192 |
+
Reality
|
| 193 |
+
</h1>
|
| 194 |
+
</div>
|
| 195 |
+
<p class="mt-6 text-lg md:text-xl text-gray-400 max-w-md mx-auto opacity-0 hero-desc">
|
| 196 |
+
Interactive Spatial Computing. Experience the next dimension of web interfaces.
|
| 197 |
+
</p>
|
| 198 |
+
|
| 199 |
+
<div class="mt-12 opacity-0 hero-cta">
|
| 200 |
+
<button id="calibrate-btn" class="pointer-events-auto px-8 py-4 bg-white/10 backdrop-blur-md border border-cyan-500/50 text-cyan-400 hover:bg-cyan-400 hover:text-black transition-all duration-300 rounded-none uppercase tracking-widest font-bold hover-trigger" data-cursor="button">
|
| 201 |
+
Calibrate Sensors
|
| 202 |
+
</button>
|
| 203 |
+
</div>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
|
| 207 |
+
<!-- Scroll Indicator -->
|
| 208 |
+
<div class="absolute bottom-10 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 animate-bounce z-10">
|
| 209 |
+
<span class="text-[10px] uppercase tracking-widest text-gray-500">Scroll</span>
|
| 210 |
+
<div class="w-[1px] h-12 bg-gradient-to-b from-cyan-500 to-transparent"></div>
|
| 211 |
+
</div>
|
| 212 |
+
</section>
|
| 213 |
+
|
| 214 |
+
<!-- Immersive Feature Section -->
|
| 215 |
+
<section id="immersive" class="relative min-h-screen w-full flex items-center justify-center bg-[#050505] py-20 overflow-hidden">
|
| 216 |
+
<!-- Background Decoration -->
|
| 217 |
+
<div class="absolute inset-0 holo-grid opacity-20"></div>
|
| 218 |
+
<div class="absolute top-1/4 right-0 w-96 h-96 bg-purple-600/20 rounded-full blur-[100px]"></div>
|
| 219 |
+
<div class="absolute bottom-1/4 left-0 w-96 h-96 bg-cyan-600/20 rounded-full blur-[100px]"></div>
|
| 220 |
+
|
| 221 |
+
<div class="container mx-auto px-6 relative z-10 grid md:grid-cols-2 gap-16 items-center">
|
| 222 |
+
|
| 223 |
+
<!-- Left Content -->
|
| 224 |
+
<div class="space-y-8">
|
| 225 |
+
<div class="inline-block px-3 py-1 border border-cyan-500/30 rounded-full text-cyan-400 text-xs uppercase tracking-widest mb-4">
|
| 226 |
+
Neural Interface v2.0
|
| 227 |
+
</div>
|
| 228 |
+
<h2 class="text-5xl md:text-7xl font-bold uppercase leading-tight">
|
| 229 |
+
Holographic <br>
|
| 230 |
+
<span class="text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-purple-500">Depth</span>
|
| 231 |
+
</h2>
|
| 232 |
+
<p class="text-gray-400 text-lg leading-relaxed max-w-md">
|
| 233 |
+
Our proprietary rendering engine constructs infinite layers of depth. Using WebGL shaders and post-processing bloom effects, we simulate true volumetric presence on a flat screen.
|
| 234 |
+
</p>
|
| 235 |
+
|
| 236 |
+
<ul class="space-y-4 mt-8">
|
| 237 |
+
<li class="flex items-center gap-4 text-gray-300 hover-trigger" data-cursor="list">
|
| 238 |
+
<div class="w-8 h-8 rounded-full bg-cyan-500/10 flex items-center justify-center text-cyan-400">
|
| 239 |
+
<svg width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path d="M5 13l4 4L19 7"></path></svg>
|
| 240 |
+
</div>
|
| 241 |
+
Real-time Raymarching
|
| 242 |
+
</li>
|
| 243 |
+
<li class="flex items-center gap-4 text-gray-300 hover-trigger" data-cursor="list">
|
| 244 |
+
<div class="w-8 h-8 rounded-full bg-purple-500/10 flex items-center justify-center text-purple-400">
|
| 245 |
+
<svg width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path d="M5 13l4 4L19 7"></path></svg>
|
| 246 |
+
</div>
|
| 247 |
+
Procedural Texture Synthesis
|
| 248 |
+
</li>
|
| 249 |
+
<li class="flex items-center gap-4 text-gray-300 hover-trigger" data-cursor="list">
|
| 250 |
+
<div class="w-8 h-8 rounded-full bg-cyan-500/10 flex items-center justify-center text-cyan-400">
|
| 251 |
+
<svg width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path d="M5 13l4 4L19 7"></path></svg>
|
| 252 |
+
</div>
|
| 253 |
+
Spatial Audio Mapping
|
| 254 |
+
</li>
|
| 255 |
+
</ul>
|
| 256 |
+
</div>
|
| 257 |
+
|
| 258 |
+
<!-- Right Content: 3D Card Stack -->
|
| 259 |
+
<div class="relative h-[500px] w-full perspective-1000 flex items-center justify-center">
|
| 260 |
+
<!-- The 3D Tilt Card -->
|
| 261 |
+
<div id="tilt-card" class="relative w-80 h-[450px] bg-gradient-to-br from-gray-900 to-black rounded-2xl border border-white/10 shadow-2xl transform-style-3d transition-transform duration-100 ease-out hover-trigger" data-cursor="card">
|
| 262 |
+
|
| 263 |
+
<!-- Inner content of card -->
|
| 264 |
+
<div class="absolute inset-0 overflow-hidden rounded-2xl">
|
| 265 |
+
<div class="absolute inset-0 bg-[url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1000&auto=format&fit=crop')] bg-cover bg-center opacity-60 mix-blend-overlay"></div>
|
| 266 |
+
<!-- Floating Elements -->
|
| 267 |
+
<div class="absolute top-10 left-10 w-12 h-12 border border-cyan-500/50 rounded-full flex items-center justify-center animate-pulse">
|
| 268 |
+
<div class="w-2 h-2 bg-cyan-400 rounded-full"></div>
|
| 269 |
+
</div>
|
| 270 |
+
|
| 271 |
+
<div class="absolute bottom-10 right-10 glass-panel-strong p-4 rounded-lg max-w-[200px]">
|
| 272 |
+
<div class="h-2 w-12 bg-cyan-400 mb-2 rounded-full"></div>
|
| 273 |
+
<div class="h-2 w-full bg-gray-600 mb-1 rounded-full"></div>
|
| 274 |
+
<div class="h-2 w-2/3 bg-gray-700 rounded-full"></div>
|
| 275 |
+
</div>
|
| 276 |
+
|
| 277 |
+
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
|
| 278 |
+
<h3 class="text-6xl font-bold text-white/10 select-none">01</h3>
|
| 279 |
+
</div>
|
| 280 |
+
</div>
|
| 281 |
+
</div>
|
| 282 |
+
|
| 283 |
+
<!-- Floating Orbitals -->
|
| 284 |
+
<div class="absolute w-[500px] h-[500px] border border-white/5 rounded-full animate-[spin_10s_linear_infinite] pointer-events-none"></div>
|
| 285 |
+
<div class="absolute w-[350px] h-[350px] border border-cyan-500/10 rounded-full animate-[spin_15s_linear_infinite_reverse] pointer-events-none"></div>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
</section>
|
| 289 |
+
|
| 290 |
+
<!-- Comparison / "Before & After" Section -->
|
| 291 |
+
<section id="comparison" class="relative min-h-screen w-full bg-black flex flex-col items-center justify-center py-20">
|
| 292 |
+
<div class="text-center mb-12">
|
| 293 |
+
<h2 class="text-4xl md:text-6xl font-bold uppercase">Render Engine</h2>
|
| 294 |
+
<p class="text-gray-500 mt-4">Swipe to calibrate reality distortion field</p>
|
| 295 |
+
</div>
|
| 296 |
+
|
| 297 |
+
<!-- Interactive Comparison Slider -->
|
| 298 |
+
<div class="relative w-full max-w-6xl h-[600px] mx-auto px-4">
|
| 299 |
+
<div class="relative w-full h-full overflow-hidden rounded-2xl border border-white/10 shadow-[0_0_50px_rgba(0,243,255,0.1)]">
|
| 300 |
+
|
| 301 |
+
<!-- Background Image (Standard) -->
|
| 302 |
+
<div class="absolute inset-0 w-full h-full">
|
| 303 |
+
<img src="https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070&auto=format&fit=crop" class="w-full h-full object-cover grayscale" alt="Standard View">
|
| 304 |
+
<div class="absolute top-6 left-6 bg-black/50 px-4 py-2 rounded text-xs uppercase tracking-widest">Standard Raster</div>
|
| 305 |
+
</div>
|
| 306 |
+
|
| 307 |
+
<!-- Foreground Image (3D/Holographic) -->
|
| 308 |
+
<div id="compare-overlay" class="absolute inset-0 w-[50%] h-full overflow-hidden border-r-2 border-cyan-400 bg-black">
|
| 309 |
+
<img src="https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070&auto=format&fit=crop" class="absolute top-0 left-0 max-w-none h-full w-[2070px] object-cover filter hue-rotate-90 contrast-150 saturate-200" style="width: 100vw;" alt="Holographic View">
|
| 310 |
+
|
| 311 |
+
<!-- Holographic Overlay Effects -->
|
| 312 |
+
<div class="absolute inset-0 bg-cyan-500/20 mix-blend-overlay"></div>
|
| 313 |
+
<div class="absolute inset-0 bg-[linear-gradient(45deg,transparent_25%,rgba(255,255,255,0.1)_50%,transparent_75%)] bg-[length:10px_10px] animate-[scan_2s_linear_infinite]"></div>
|
| 314 |
+
<div class="absolute top-6 right-6 bg-cyan-500/20 px-4 py-2 rounded text-xs uppercase tracking-widest text-cyan-300 border border-cyan-500">Volumetric Raytracing</div>
|
| 315 |
+
</div>
|
| 316 |
+
|
| 317 |
+
<!-- Slider Handle -->
|
| 318 |
+
<div id="slider-handle" class="absolute top-0 bottom-0 w-1 bg-cyan-400 cursor-ew-resize z-20 flex items-center justify-center hover-trigger" style="left: 50%" data-cursor="drag">
|
| 319 |
+
<div class="w-10 h-10 bg-black border-2 border-cyan-400 rounded-full flex items-center justify-center shadow-[0_0_20px_rgba(0,243,255,0.8)]">
|
| 320 |
+
<svg class="w-4 h-4 text-cyan-400" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l4-4 4 4m0 6l-4 4-4-4"></path></svg>
|
| 321 |
+
</div>
|
| 322 |
+
</div>
|
| 323 |
+
</div>
|
| 324 |
+
|
| 325 |
+
<!-- Controls -->
|
| 326 |
+
<div class="mt-8 flex justify-center gap-4">
|
| 327 |
+
<div class="glass-panel px-6 py-3 rounded-full flex items-center gap-4">
|
| 328 |
+
<span class="text-xs text-gray-400 uppercase">Distortion</span>
|
| 329 |
+
<input type="range" min="0" max="100" value="50" class="holo-slider w-32" id="distortion-slider">
|
| 330 |
+
</div>
|
| 331 |
+
</div>
|
| 332 |
+
</div>
|
| 333 |
+
</section>
|
| 334 |
+
|
| 335 |
+
<!-- Data Visualization Section -->
|
| 336 |
+
<section id="data" class="relative min-h-screen w-full bg-[#020202] py-20 overflow-hidden">
|
| 337 |
+
<div class="container mx-auto px-6 relative z-10">
|
| 338 |
+
<div class="flex flex-col md:flex-row justify-between items-end mb-16">
|
| 339 |
+
<div>
|
| 340 |
+
<h2 class="text-5xl font-bold uppercase text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-pink-500">Live Telemetry</h2>
|
| 341 |
+
<p class="text-gray-500 mt-2">Global network nodes monitoring active singularity.</p>
|
| 342 |
+
</div>
|
| 343 |
+
<div class="mt-6 md:mt-0 flex gap-4">
|
| 344 |
+
<div class="text-right">
|
| 345 |
+
<div class="text-3xl font-mono text-cyan-400">84.2%</div>
|
| 346 |
+
<div class="text-xs text-gray-600 uppercase">Uptime</div>
|
| 347 |
+
</div>
|
| 348 |
+
<div class="text-right">
|
| 349 |
+
<div class="text-3xl font-mono text-pink-500">12.4ms</div>
|
| 350 |
+
<div class="text-xs text-gray-600 uppercase">Latency</div>
|
| 351 |
+
</div>
|
| 352 |
+
</div>
|
| 353 |
+
</div>
|
| 354 |
+
|
| 355 |
+
<!-- 3D Chart Area -->
|
| 356 |
+
<div class="relative w-full h-[500px] glass-panel rounded-2xl p-8 flex items-end justify-between gap-2 overflow-hidden group">
|
| 357 |
+
<!-- Background Grid -->
|
| 358 |
+
<div class="absolute inset-0 p-8 pointer-events-none">
|
| 359 |
+
<div class="w-full h-full border-b border-white/10 flex items-end justify-between opacity-30">
|
| 360 |
+
<span class="h-[20%] w-[1px] bg-white"></span>
|
| 361 |
+
<span class="h-[40%] w-[1px] bg-white"></span>
|
| 362 |
+
<span class="h-[60%] w-[1px] bg-white"></span>
|
| 363 |
+
<span class="h-[80%] w-[1px] bg-white"></span>
|
| 364 |
+
<span class="h-[100%] w-[1px] bg-white"></span>
|
| 365 |
+
</div>
|
| 366 |
+
</div>
|
| 367 |
+
|
| 368 |
+
<!-- Bars (Generated by JS for animation) -->
|
| 369 |
+
<div id="chart-container" class="w-full h-full flex items-end justify-between gap-2 relative z-10">
|
| 370 |
+
<!-- Bars injected here -->
|
| 371 |
+
</div>
|
| 372 |
+
</div>
|
| 373 |
+
|
| 374 |
+
<!-- Floating data points -->
|
| 375 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mt-12">
|
| 376 |
+
<div class="glass-panel p-6 rounded-xl hover:bg-white/5 transition-colors hover-trigger" data-cursor="card">
|
| 377 |
+
<div class="flex items-center justify-between mb-4">
|
| 378 |
+
<h4 class="text-gray-400 uppercase text-xs tracking-widest">Core Temp</h4>
|
| 379 |
+
<span class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></span>
|
| 380 |
+
</div>
|
| 381 |
+
<div class="text-4xl font-mono text-white">42.0°C</div>
|
| 382 |
+
</div>
|
| 383 |
+
<div class="glass-panel p-6 rounded-xl hover:bg-white/5 transition-colors hover-trigger" data-cursor="card">
|
| 384 |
+
<div class="flex items-center justify-between mb-4">
|
| 385 |
+
<h4 class="text-gray-400 uppercase text-xs tracking-widest">Memory</h4>
|
| 386 |
+
<span class="w-2 h-2 bg-yellow-500 rounded-full animate-pulse"></span>
|
| 387 |
+
</div>
|
| 388 |
+
<div class="text-4xl font-mono text-white">128 PB</div>
|
| 389 |
+
</div>
|
| 390 |
+
<div class="glass-panel p-6 rounded-xl hover:bg-white/5 transition-colors hover-trigger" data-cursor="card">
|
| 391 |
+
<div class="flex items-center justify-between mb-4">
|
| 392 |
+
<h4 class="text-gray-400 uppercase text-xs tracking-widest">Threat Level</h4>
|
| 393 |
+
<span class="w-2 h-2 bg-red-500 rounded-full animate-pulse"></span>
|
| 394 |
+
</div>
|
| 395 |
+
<div class="text-4xl font-mono text-white">Minimal</div>
|
| 396 |
+
</div>
|
| 397 |
+
</div>
|
| 398 |
+
</div>
|
| 399 |
+
</section>
|
| 400 |
+
|
| 401 |
+
<!-- Footer -->
|
| 402 |
+
<footer class="bg-black border-t border-white/10 py-20 relative overflow-hidden">
|
| 403 |
+
<div class="absolute inset-0 flex items-center justify-center opacity-5 pointer-events-none">
|
| 404 |
+
<h1 class="text-[20vw] font-bold uppercase leading-none">NOVA</h1>
|
| 405 |
+
</div>
|
| 406 |
+
<div class="container mx-auto px-6 text-center relative z-10">
|
| 407 |
+
<h2 class="text-3xl md:text-5xl font-bold mb-8">Ready to transcend?</h2>
|
| 408 |
+
<a href="#" class="inline-block px-10 py-4 bg-gradient-to-r from-cyan-500 to-purple-600 rounded-full text-white font-bold uppercase tracking-wider hover:scale-105 transition-transform shadow-[0_0_30px_rgba(0,243,255,0.4)] hover-trigger" data-cursor="button">
|
| 409 |
+
Initialize Sequence
|
| 410 |
+
</a>
|
| 411 |
+
<div class="mt-20 flex flex-col md:flex-row justify-between items-center text-gray-600 text-sm">
|
| 412 |
+
<p> Nova Systems. All rights reserved.</p>
|
| 413 |
+
<div class="flex gap-6 mt-4 md:mt-0">
|
| 414 |
+
<a href="#" class="hover:text-white transition-colors">Privacy Protocol</a>
|
| 415 |
+
<a href="#" class="hover:text-white transition-colors">Neural Terms</a>
|
| 416 |
+
</div>
|
| 417 |
+
</div>
|
| 418 |
+
</div>
|
| 419 |
+
<div class="text-center mt-4 text-xs text-gray-700">
|
| 420 |
+
Built with <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="underline hover:text-cyan-500">anycoder</a>
|
| 421 |
+
</div>
|
| 422 |
+
</footer>
|
| 423 |
+
|
| 424 |
+
<!-- JavaScript Application Logic -->
|
| 425 |
+
<script>
|
| 426 |
+
// --- 1. Lenis Smooth Scroll ---
|
| 427 |
+
const lenis = new Lenis({
|
| 428 |
+
duration: 1.2,
|
| 429 |
+
easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
|
| 430 |
+
direction: 'vertical',
|
| 431 |
+
gestureDirection: 'vertical',
|
| 432 |
+
smooth: true,
|
| 433 |
+
mouseMultiplier: 1,
|
| 434 |
+
smoothTouch: false,
|
| 435 |
+
touchMultiplier: 2,
|
| 436 |
+
});
|
| 437 |
+
|
| 438 |
+
function raf(time) {
|
| 439 |
+
lenis.raf(time);
|
| 440 |
+
requestAnimationFrame(raf);
|
| 441 |
+
}
|
| 442 |
+
requestAnimationFrame(raf);
|
| 443 |
+
|
| 444 |
+
// Integrate with GSAP ScrollTrigger
|
| 445 |
+
lenis.on('scroll', ScrollTrigger.update);
|
| 446 |
+
gsap.ticker.add((time) => {
|
| 447 |
+
lenis.raf(time * 1000);
|
| 448 |
+
});
|
| 449 |
+
gsap.ticker.lagSmoothing(0);
|
| 450 |
+
|
| 451 |
+
// --- 2. Custom Cursor Logic ---
|
| 452 |
+
const cursorDot = document.querySelector('.cursor-dot');
|
| 453 |
+
const cursorOutline = document.querySelector('.cursor-outline');
|
| 454 |
+
const triggers = document.querySelectorAll('.hover-trigger');
|
| 455 |
+
|
| 456 |
+
window.addEventListener('mousemove', (e) => {
|
| 457 |
+
const posX = e.clientX;
|
| 458 |
+
const posY = e.clientY;
|
| 459 |
+
|
| 460 |
+
// Dot follows instantly
|
| 461 |
+
cursorDot.style.left = `${posX}px`;
|
| 462 |
+
cursorDot.style.top = `${posY}px`;
|
| 463 |
+
|
| 464 |
+
// Outline follows with slight delay (handled by CSS transition mostly, but we update pos)
|
| 465 |
+
cursorOutline.style.left = `${posX}px`;
|
| 466 |
+
cursorOutline.style.top = `${posY}px`;
|
| 467 |
+
});
|
| 468 |
+
|
| 469 |
+
// Hover States
|
| 470 |
+
triggers.forEach(trigger => {
|
| 471 |
+
trigger.addEventListener('mouseenter', () => {
|
| 472 |
+
document.body.classList.add('hovering');
|
| 473 |
+
});
|
| 474 |
+
trigger.addEventListener('mouseleave', () => {
|
| 475 |
+
document.body.classList.remove('hovering');
|
| 476 |
+
});
|
| 477 |
+
});
|
| 478 |
+
|
| 479 |
+
// --- 3. Hero Three.js Scene (The Icosahedron) ---
|
| 480 |
+
const initHero = () => {
|
| 481 |
+
const canvas = document.querySelector('#hero-canvas');
|
| 482 |
+
const scene = new THREE.Scene();
|
| 483 |
+
|
| 484 |
+
// Camera setup
|
| 485 |
+
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
|
| 486 |
+
camera.position.z = 20;
|
| 487 |
+
|
| 488 |
+
const renderer = new THREE.WebGLRenderer({ canvas, alpha: true, antialias: true });
|
| 489 |
+
renderer.setSize(window.innerWidth, window.innerHeight);
|
| 490 |
+
renderer.setPixelRatio(window.devicePixelRatio);
|
| 491 |
+
|
| 492 |
+
// Object: Icosahedron with Wireframe
|
| 493 |
+
const geometry = new THREE.IcosahedronGeometry(8, 1);
|
| 494 |
+
|
| 495 |
+
// Material: Dark glossy material
|
| 496 |
+
const material = new THREE.MeshStandardMaterial({
|
| 497 |
+
color: 0x111111,
|
| 498 |
+
roughness: 0.2,
|
| 499 |
+
metalness: 0.8,
|
| 500 |
+
flatShading: true
|
| 501 |
+
});
|
| 502 |
+
|
| 503 |
+
const mesh = new THREE.Mesh(geometry, material);
|
| 504 |
+
scene.add(mesh);
|
| 505 |
+
|
| 506 |
+
// Wireframe overlay
|
| 507 |
+
const wireframeGeo = new THREE.WireframeGeometry(geometry);
|
| 508 |
+
const wireframeMat = new THREE.LineBasicMaterial({ color: 0x00f3ff, transparent: true, opacity: 0.3 });
|
| 509 |
+
const wireframe = new THREE.LineSegments(wireframeGeo, wireframeMat);
|
| 510 |
+
mesh.add(wireframe);
|
| 511 |
+
|
| 512 |
+
// Particles
|
| 513 |
+
const particlesGeo = new THREE.BufferGeometry();
|
| 514 |
+
const particlesCount = 1000;
|
| 515 |
+
const posArray = new Float32Array(particlesCount * 3);
|
| 516 |
+
for(let i = 0; i < particlesCount * 3; i++) {
|
| 517 |
+
posArray[i] = (Math.random() - 0.5) * 100;
|
| 518 |
+
}
|
| 519 |
+
particlesGeo.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
|
| 520 |
+
const particlesMat = new THREE.PointsMaterial({
|
| 521 |
+
size: 0.15,
|
| 522 |
+
color: 0xffffff,
|
| 523 |
+
transparent: true,
|
| 524 |
+
opacity: 0.8,
|
| 525 |
+
blending: THREE.AdditiveBlending
|
| 526 |
+
});
|
| 527 |
+
const particlesMesh = new THREE.Points(particlesGeo, particlesMat);
|
| 528 |
+
scene.add(particlesMesh);
|
| 529 |
+
|
| 530 |
+
// Lights
|
| 531 |
+
const ambientLight = new THREE.AmbientLight(0x404040, 2);
|
| 532 |
+
scene.add(ambientLight);
|
| 533 |
+
const pointLight = new THREE.PointLight(0x00f3ff, 2, 50);
|
| 534 |
+
pointLight.position.set(10, 10, 10);
|
| 535 |
+
scene.add(pointLight);
|
| 536 |
+
const pointLight2 = new THREE.PointLight(0xbc13fe, 2, 50);
|
| 537 |
+
pointLight2.position.set(-10, -10, 10);
|
| 538 |
+
scene.add(pointLight2);
|
| 539 |
+
|
| 540 |
+
// Mouse interaction
|
| 541 |
+
let mouseX = 0;
|
| 542 |
+
let mouseY = 0;
|
| 543 |
+
let targetRotationX = 0;
|
| 544 |
+
let targetRotationY = 0;
|
| 545 |
+
|
| 546 |
+
document.addEventListener('mousemove', (event) => {
|
| 547 |
+
mouseX = (event.clientX / window.innerWidth) * 2 - 1;
|
| 548 |
+
mouseY = -(event.clientY / window.innerHeight) * 2 + 1;
|
| 549 |
+
});
|
| 550 |
+
|
| 551 |
+
// Animation Loop
|
| 552 |
+
const clock = new THREE.Clock();
|
| 553 |
+
|
| 554 |
+
const animate = () => {
|
| 555 |
+
const elapsedTime = clock.getElapsedTime();
|
| 556 |
+
|
| 557 |
+
// Rotate mesh
|
| 558 |
+
mesh.rotation.y += 0.002;
|
| 559 |
+
mesh.rotation.x += 0.001;
|
| 560 |
+
|
| 561 |
+
// Mouse influence
|
| 562 |
+
targetRotationX = mouseY * 0.5;
|
| 563 |
+
targetRotationY = mouseX * 0.5;
|
| 564 |
+
|
| 565 |
+
mesh.rotation.x += 0.05 * (targetRotationX - mesh.rotation.x);
|
| 566 |
+
mesh.rotation.y += 0.05 * (targetRotationY - mesh.rotation.y);
|
| 567 |
+
|
| 568 |
+
// Pulse effect
|
| 569 |
+
const scale = 1 + Math.sin(elapsedTime * 2) * 0.02;
|
| 570 |
+
mesh.scale.set(scale, scale, scale);
|
| 571 |
+
|
| 572 |
+
// Particles rotation
|
| 573 |
+
particlesMesh.rotation.y = elapsedTime * 0.05;
|
| 574 |
+
particlesMesh.rotation.x = elapsedTime * 0.02;
|
| 575 |
+
|
| 576 |
+
renderer.render(scene, camera);
|
| 577 |
+
requestAnimationFrame(animate);
|
| 578 |
+
};
|
| 579 |
+
animate();
|
| 580 |
+
|
| 581 |
+
// Resize handler
|
| 582 |
+
window.addEventListener('resize', () => {
|
| 583 |
+
camera.aspect = window.innerWidth / window.innerHeight;
|
| 584 |
+
camera.updateProjectionMatrix();
|
| 585 |
+
renderer.setSize(window.innerWidth, window.innerHeight);
|
| 586 |
+
});
|
| 587 |
+
|
| 588 |
+
// Hero Text Animation
|
| 589 |
+
gsap.to('.hero-title', {
|
| 590 |
+
opacity: 1,
|
| 591 |
+
y: 0,
|
| 592 |
+
duration: 1.5,
|
| 593 |
+
stagger: 0.2,
|
| 594 |
+
ease: "power4.out",
|
| 595 |
+
delay: 0.5
|
| 596 |
+
});
|
| 597 |
+
gsap.to('.hero-desc', {
|
| 598 |
+
opacity: 1,
|
| 599 |
+
y: 0,
|
| 600 |
+
duration: 1,
|
| 601 |
+
delay: 1.5
|
| 602 |
+
});
|
| 603 |
+
gsap.to('.hero-cta', {
|
| 604 |
+
opacity: 1,
|
| 605 |
+
y: 0,
|
| 606 |
+
duration: 1,
|
| 607 |
+
delay: 2
|
| 608 |
+
});
|
| 609 |
+
};
|
| 610 |
+
initHero();
|
| 611 |
+
|
| 612 |
+
// --- 4. 3D Tilt Card Logic ---
|
| 613 |
+
const card = document.getElementById('tilt-card');
|
| 614 |
+
const cardContainer = card.parentElement;
|
| 615 |
+
|
| 616 |
+
cardContainer.addEventListener('mousemove', (e) => {
|
| 617 |
+
const rect = cardContainer.getBoundingClientRect();
|
| 618 |
+
const x = e.clientX - rect.left;
|
| 619 |
+
const y = e.clientY - rect.top;
|
| 620 |
+
|
| 621 |
+
const centerX = rect.width / 2;
|
| 622 |
+
const centerY = rect.height / 2;
|
| 623 |
+
|
| 624 |
+
const rotateX = ((y - centerY) / centerY) * -20; // Max 20deg
|
| 625 |
+
const rotateY = ((x - centerX) / centerX) * 20;
|
| 626 |
+
|
| 627 |
+
card.style.transform = `rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale3d(1.05, 1.05, 1.05)`;
|
| 628 |
+
});
|
| 629 |
+
|
| 630 |
+
cardContainer.addEventListener('mouseleave', () => {
|
| 631 |
+
card.style.transform = `rotateX(0) rotateY(0) scale3d(1, 1, 1)`;
|
| 632 |
+
});
|
| 633 |
+
|
| 634 |
+
// --- 5. Comparison Slider Logic ---
|
| 635 |
+
const slider = document.getElementById('slider-handle');
|
| 636 |
+
const overlay = document.getElementById('compare-overlay');
|
| 637 |
+
const container = slider.parentElement;
|
| 638 |
+
let isDragging = false;
|
| 639 |
+
|
| 640 |
+
const moveSlider = (x) => {
|
| 641 |
+
const rect = container.getBoundingClientRect();
|
| 642 |
+
let percentage = ((x - rect.left) / rect.width) * 100;
|
| 643 |
+
percentage = Math.max(0, Math.min(100, percentage));
|
| 644 |
+
|
| 645 |
+
slider.style.left = `${percentage}%`;
|
| 646 |
+
overlay.style.width = `${percentage}%`;
|
| 647 |
+
};
|
| 648 |
+
|
| 649 |
+
slider.addEventListener('mousedown', () => isDragging = true);
|
| 650 |
+
window.addEventListener('mouseup', () => isDragging = false);
|
| 651 |
+
window.addEventListener('mousemove', (e) => {
|
| 652 |
+
if (!isDragging) return;
|
| 653 |
+
moveSlider(e.clientX);
|
| 654 |
+
});
|
| 655 |
+
|
| 656 |
+
// Touch support
|
| 657 |
+
slider.addEventListener('touchstart', () => isDragging = true);
|
| 658 |
+
window.addEventListener('touchend', () => isDragging = false);
|
| 659 |
+
window.addEventListener('touchmove', (e) => {
|
| 660 |
+
if (!isDragging) return;
|
| 661 |
+
moveSlider(e.touches[0].clientX);
|
| 662 |
+
});
|
| 663 |
+
|
| 664 |
+
// Distortion Slider Control
|
| 665 |
+
const distortionInput = document.getElementById('distortion-slider');
|
| 666 |
+
distortionInput.addEventListener('input', (e) => {
|
| 667 |
+
const val = e.target.value;
|
| 668 |
+
// Adjust the hue rotate of the image based on slider
|
| 669 |
+
overlay.querySelector('img').style.filter = `hue-rotate(${val * 1.8}deg) contrast(150%) saturate(${100 + parseInt(val)}%)`;
|
| 670 |
+
});
|
| 671 |
+
|
| 672 |
+
// --- 6. Data Chart Animation (Canvas) ---
|
| 673 |
+
const initChart = () => {
|
| 674 |
+
const chartContainer = document.getElementById('chart-container');
|
| 675 |
+
const barCount = 40;
|
| 676 |
+
|
| 677 |
+
for (let i = 0; i < barCount; i++) {
|
| 678 |
+
const bar = document.createElement('div');
|
| 679 |
+
bar.classList.add('flex-1', 'bg-cyan-500/20', 'hover:bg-cyan-400/50', 'transition-colors', 'rounded-t-sm', 'relative', 'group');
|
| 680 |
+
// Random height
|
| 681 |
+
const height = Math.random() * 100;
|
| 682 |
+
bar.style.height = '0%'; // Start at 0 for animation
|
| 683 |
+
|
| 684 |
+
// Tooltip
|
| 685 |
+
const tooltip = document.createElement('div');
|
| 686 |
+
tooltip.classList.add('absolute', '-top-8', 'left-1/2', '-translate-x-1/2', 'bg-black', 'border', 'border-cyan-500', 'text-cyan-400', 'text-[10px]', 'px-2', 'py-1', 'rounded', 'opacity-0', 'group-hover:opacity-100', 'transition-opacity', 'pointer-events-none');
|
| 687 |
+
tooltip.innerText = Math.floor(Math.random() * 999);
|
| 688 |
+
bar.appendChild(tooltip);
|
| 689 |
+
|
| 690 |
+
chartContainer.appendChild(bar);
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
// Animate bars on scroll
|
| 694 |
+
ScrollTrigger.create({
|
| 695 |
+
trigger: "#chart-container",
|
| 696 |
+
start: "top 80%",
|
| 697 |
+
onEnter: () => {
|
| 698 |
+
const bars = chartContainer.querySelectorAll('div');
|
| 699 |
+
bars.forEach((bar, index) => {
|
| 700 |
+
gsap.to(bar, {
|
| 701 |
+
height: `${Math.random() * 80 + 10}%`,
|
| 702 |
+
duration: 1,
|
| 703 |
+
delay: index * 0.05,
|
| 704 |
+
ease: "elastic.out(1, 0.5)"
|
| 705 |
+
});
|
| 706 |
+
});
|
| 707 |
+
}
|
| 708 |
+
});
|
| 709 |
+
};
|
| 710 |
+
initChart();
|
| 711 |
+
|
| 712 |
+
// --- 7. General Scroll Animations (GSAP) ---
|
| 713 |
+
gsap.from("#immersive .space-y-8 > *", {
|
| 714 |
+
scrollTrigger: {
|
| 715 |
+
trigger: "#immersive",
|
| 716 |
+
start: "top 60%",
|
| 717 |
+
},
|
| 718 |
+
y: 50,
|
| 719 |
+
opacity: 0,
|
| 720 |
+
duration: 1,
|
| 721 |
+
stagger: 0.2,
|
| 722 |
+
ease: "power3.out"
|
| 723 |
+
});
|
| 724 |
+
|
| 725 |
+
gsap.from("#comparison .text-center", {
|
| 726 |
+
scrollTrigger: {
|
| 727 |
+
trigger: "#comparison",
|
| 728 |
+
start: "top 70%",
|
| 729 |
+
},
|
| 730 |
+
y: 30,
|
| 731 |
+
opacity: 0,
|
| 732 |
+
duration: 1
|
| 733 |
+
});
|
| 734 |
+
|
| 735 |
+
// Calibrate Button Effect
|
| 736 |
+
const calibrateBtn = document.getElementById('calibrate-btn');
|
| 737 |
+
calibrateBtn.addEventListener('click', () => {
|
| 738 |
+
// Flash effect
|
| 739 |
+
const flash = document.createElement('div');
|
| 740 |
+
flash.classList.add('fixed', 'inset-0', 'bg-white', 'z-[9999]', 'pointer-events-none');
|
| 741 |
+
document.body.appendChild(flash);
|
| 742 |
+
|
| 743 |
+
gsap.to(flash, {
|
| 744 |
+
opacity: 0,
|
| 745 |
+
duration: 0.5,
|
| 746 |
+
onComplete: () => flash.remove()
|
| 747 |
+
});
|
| 748 |
+
|
| 749 |
+
// Spin the Three.js object wildly for a moment
|
| 750 |
+
const canvas = document.getElementById('hero-canvas');
|
| 751 |
+
// This is a simplified visual feedback, in a real app we'd access the mesh directly
|
| 752 |
+
gsap.to(canvas, {
|
| 753 |
+
filter: "hue-rotate(180deg) blur(10px)",
|
| 754 |
+
duration: 0.2,
|
| 755 |
+
yoyo: true,
|
| 756 |
+
repeat: 1
|
| 757 |
+
});
|
| 758 |
+
});
|
| 759 |
+
|
| 760 |
+
</script>
|
| 761 |
+
</body>
|
| 762 |
+
</html>
|