Generative Art with CSS
summary
Browser-only generative visuals map two numeric parameters—audio level and pitch—into CSS via attr(), calc(), custom properties so gradients, 3D transforms and rotations respond without rebuilding styles. Audio comes from SoundCloud through the Web Audio API; camera input supplies dominant colors via getUserMedia. The demo uses only two driven variables (plus ranges to avoid CSS rounding issues), runs smoothly in real time, and produces complex motion and color shifts with minimal JS.
AI-written summary · about
