LN

Cloth Simulation

Component 10

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>
  );
}

Dependencies

More by LN

View all
  • Pricing Interaction

    Pricing Interaction

    1.4K
  • Dorpdown Navigation

    Dorpdown Navigation

    1.2K
  • Visualize Booking

    Visualize Booking

    618
  • Assisted Password Confirmation

    Assisted Password Confirmation

    585
  • Tags Selector

    Tags Selector

    531
  • Mega Menu

    Mega Menu

    386
  • Feedback Slider

    Feedback Slider

    326
  • FlipButton

    FlipButton

    288

Explore more

Part of lndev-ui — browse the full library on 21st.dev.