About
A 3D animated cloth that hangs from its top edge and ripples under simulated wind, rendered with a real spring-mass (Verlet) physics simulation in Three.js and colored with your theme's primary-to-accent gradient.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Cloth Simulation to your project and fits it to your theme.
Code
How Cloth Simulation is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Cloth from "@/components/ui/cloth";
export default function ClothDemo() {
return (
<div className="h-screen w-full">
<Cloth />
</div>
);
}








