Dance Floor — Code-Built Dancer on a Disco Stage
Code-built dancer on a disco stage, in one HTML file. Pick moves, click for sound.
Code-built dancer on a disco stage, built entirely in code: one self-contained HTML file with no images, no 3D models and no build step. Under the hood: Three.js, code-built jointed human rig, procedural choreography, Web Audio beat, mirrored stage, UnrealBloom. What a visitor can do: pick GROOVE / WAVE / ROBOT / TWIST (auto-cycles), click the stage to start a live four-on-the-floor beat, move to turn the dancer, 4 presets (Disco gold, Chrome, Clay, Hologram). Best for: Music, events, night-life, fitness, fashion. Three.js loads from a CDN through an import map, so there is still nothing to install. Every colour, count and speed sits in one CONFIG block, presets switch live from a glass dock, and ?embed strips the interface for a clean iframe or hero background.
How to run this
Nothing to install and nothing to configure. Works in any modern browser on Windows, macOS and Linux.
- Built with
- Single HTML file
- Requires
- A modern browser
- 1. Unzip the download.
- 2. Double-click index.html. It opens in your browser and runs. To serve it instead (the microphone and some browsers want a server), run
npx serve .in the folder and openhttp://localhost:3000.
Note — Three.js loads from the jsDelivr CDN through an import map, so the first load needs an internet connection. Add ?embed to hide the interface for an iframe or hero background, and ?preset=N to start on a colour preset.
More like this
Browse 3D designs →
PremiumPulse Rings — 3D Audio Visualiser
3D audio visualiser, in one HTML file. Beat / mic / your track.
PremiumVinyl Deck — Turntable with Live Lo-Fi Beat
Turntable with live lo-fi beat, in one HTML file. Click to play (sound), `?text=`.
PremiumNewton's Cradle — Physically Simulated Desk Toy
Physically simulated desk toy, in one HTML file. Drag a ball, release.
