04
Waves
A vertical palette ramp is rippled by a travelling sine wave and roughened with fractal noise, so the bands roll like a swell seen from above. A tidal blue palette is hue-rotated into acid chartreuse, and the cursor opens a lens that pushes the waves aside.
sine bandsfbmlens cursor
Live· lens
Installation
Add it to your project
$
Installs 5 files into components/shaders. The engine is shared, so a second shader only adds its own three files.
Usage
Mount it behind your content
app/hero.tsx
The shader fills its nearest positioned ancestor. Give the parent relative isolate and the shader -z-10 to put it behind everything else. The cursor is tracked on the window, so content on top doesn’t block it.
API reference