# Cloth Works Gallery

> A portfolio works section where a row of project posters hangs as cloth. Drag or scroll and every poster bends and flaps like a flag with its free edges trailing; the cursor ripples a poster as it passes and it settles flat again. The big title follows the poster in the middle, and an Index pill switches to a grid of the same work. Built on three.js with a small spring-cloth simulation per poster. Pass your own projects as props.

- Author: [Kedhareswer Naidu](https://21st.dev/@kedhareswer)
- License: mit
- Tags: Carousel, Image, Gallery, Interactive, 3D
- npm dependencies: three
- Live preview: https://21st.dev/@kedhareswer/components/cloth-works-gallery

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/kedhareswer/cloth-works-gallery?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/carousel.md
