Kinetic UI
Back to Introduction
Shader Physics

Audio Reactive Visualizer

A WebGL shader mesh that syncs geometric distortion and color tinting to live audio frequencies.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add audio-visualizer-gl

The AudioReactiveVisualizer leverages the Web Audio API to stream frequency data directly into a custom GLSL shader via uniforms, distorting a 3D Icosahedron in real-time to the bass and treble.

Live Preview

audio-reactive-visualizer

Installation

npx kinetic-ui-cli@latest add
PropTypeDefaultDescription

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { AudioVisualizerGl } from "@/components/creative/audio-visualizer-gl";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { AudioVisualizerGl } from "@/components/creative/audio-visualizer-gl";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <AudioVisualizerGl
      >
        <div>Content goes here</div>
      </AudioVisualizerGl>
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.