About
An interactive WebGL fluid simulation that swirls behind page content, reacting to the pointer or touch and recoloring itself from the page's accent, for use as a hero or section background.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Fluid Canvas to your project and fits it to your theme.
Code
How Fluid Canvas is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import FluidCanvas from "@/components/ui/fluid-canvas";
export default function FluidCanvasSingleColourDemo() {
return (
<div className="relative h-screen w-full overflow-hidden">
<FluidCanvas
className="absolute inset-0 h-full w-full"
colors={["#3b82f6"]}
curl={40}
quality="high"
/>
</div>
);
}
















