About
A shader-based animated wave background using Three.js, ideal as a hero or landing page backdrop.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Waves to your project and fits it to your theme.
Code
How Waves is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Waves } from "@/components/ui/waves";
const settings = {
waveSpeedX: 0.0125,
waveSpeedY: 0.005,
waveAmpX: 32,
waveColor1: "#071697",
waveColor2: "#00d4ff",
waveColor3: "#000000",
};
export default function Demo(props: Partial<typeof settings>) {
const s = { ...settings, ...props };
return (
<div className="h-screen w-screen relative">
<Waves {...s} />
</div>
);
}
















