Rama annaswamy

Fluid Cursor

Component

About

Full Navier-Stokes fluid simulation that swirls color in response to cursor and touch movement, running on WebGL2 with a WebGL1 fallback and an optional WebGPU HDR path for wide-gamut, brighter-than-white glow.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Fluid Cursor to your project and fits it to your theme.

Code

How Fluid Cursor is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { FluidCursor } from "@/components/ui/fancy-fluid-cursor"

export default function FluidCursorDemo() {
	return (
		<div className="relative h-64 w-full overflow-hidden rounded-lg border">
			<FluidCursor />
			<div className="pointer-events-none absolute inset-0 flex items-center justify-center">
				<p className="text-muted-foreground text-sm select-none">Move your cursor here</p>
			</div>
		</div>
	);
}

More by Rama annaswamy

View all
  • Displacement Text

    Displacement Text

  • Flickering Grid

    Flickering Grid

  • Matrix Rain

    Matrix Rain

  • Card Spotlight

    Card Spotlight