use three.js to add 3d model where the head follow the cursor. make the website more…
- User
use three.js to add 3d model where the head follow the cursor. make the website more minimalistic, less gradient. but modern and comfortable to the eyes.
Assistant
I'll add a Three.js 3D head that follows the cursor and simplify the design to be more minimalistic and comfortable. Let me first research how to implement this.
Now let me create the 3D head component using Three.js. I'll build a low-poly abstract head mesh that rotates to follow the cursor.
Now let me rewrite the styles to be more minimalistic and comfortable with less gradient usage:
Now let me simplify the config to be cleaner:
I removed the gradient from config, so I need to simplify PlaylistCard too. Let me rewrite it:
Now rewrite the PlayerBar to be more minimal:
Now rewrite the main App to be minimal, with the 3D head hero:
Now let me build to check for errors:
The build succeeded! The site is ready. Let me also add the
@keyframes equalizeinto the CSS since the PlaylistCard uses it:Build is clean. Here's a summary of everything:
🎧 What was built
3D Head (Three.js) —
src/components/ThreeHead.tsx- A low-poly faceted head made with an icosahedron geometry (wireframe + transparent glass material in Spotify green)
- Follows the cursor smoothly — rotates its head to "look" at where your mouse is
- Also responds to touch on mobile devices
- Has subtle floating animation, blinking eyes (white dots), and a slow color pulse on the wireframe
- Includes a neck and shoulders base for a bust-like sculpture feel
- All renders on a transparent alpha canvas over the hero section
Minimalist redesign
- Dark, muted palette:
#0b0b11background with#e4e4e7text — no heavy gradients, just subtle white borders and low-opacity overlays - Clean spacing throughout — softer cards, thinner borders, less visual noise
- Subtle animations — fade-ups on scroll, smooth hover transitions, genre marquee
All the original features remain
- Playlist grid with play/preview buttons and Spotify embed player bar at the bottom
- Connect section with Instagram + Spotify links
- Brand config in
src/config.tswhere you edit your name, tagline, social links, and playlist IDs
✏️ Edit your branding
Everything is centralized in
src/config.ts— change the brand name ("WAVES"), tagline, Instagram/Spotify URLs, and the playlist array. Each playlist just needs its Spotify playlist ID.Files built:
src/components/ThreeHead.tsx,src/index.css,src/config.ts,src/components/PlaylistCard.tsx,src/components/PlayerBar.tsx,src/App.tsx