← All components Next componentShader Fluid Portal→
Extras · Audio
Gravitational Audio Visualizer
Thousands of metal beads levitate around a chrome torus and burst on the bass. Microphone, audio file or built-in beat; positions computed on the GPU, up to 10 000 beads.
<GravitationalAudioVisualizer />Live
Try the microphone · hover the swarm
Customize
Glow#8b5cf6
Metal#d9d6e8
Installation
Use it in your project
Or skip the copy-paste
One command: writes the file and installs the dependencies.
$ npx deepui-cli add gravitational-audio-visualizer
Pro component: run npx deepui-cli login first with a token from your library.
01
Install
The 3D packages this component is built on.
$ npm install three @react-three/fiber @react-three/drei && npm install -D @types/three
02
Add the component
One self-contained file: create components/GravitationalAudioVisualizer.tsx and paste it in.
03
Drop it in a page
Updated live with the settings above.
app/page.tsx
1import GravitationalAudioVisualizer from "@/components/GravitationalAudioVisualizer";23export default function Section() {4 return (5 // The component fills this box: give it a position and a height6 <div style={{ position: "relative", width: "100%", height: "100vh" }}>7 <GravitationalAudioVisualizer8 audioSensitivity={1}9 particleDensity={4000}10 cursorRepulsion={1}11 metallicRoughness={0.18}12 emissiveColor="#8b5cf6"13 primaryColor="#d9d6e8"14 wireframeStructure15 />16 </div>17 );18}