# Interactive Code Cloth Physics Curtain

> Interactive cloth physics text effect for React: a sheet of source code hangs from a rod as a verlet mesh on canvas, so every character bends, folds and drapes. Hover parts the code and scrambles the glyphs, drag to pull and flick it, double-click to pin or unpin, R to rehang and arrow keys for a gust. Reduced-motion aware.

- Author: [Kedhareswer Naidu](https://21st.dev/@kedhareswer)
- License: mit
- Tags: Canvas, Code, Interactive, Physics, Text Effect
- Live preview: https://21st.dev/@kedhareswer/components/code-curtain

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/kedhareswer/code-curtain?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/canvas.md
