Walnut · bellows in good order
Bellows
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardBellows(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-bellowsAbout this component
A camera listing card that opens on bellows: press Specs and the lower half of the card drops away from the top on a pleated leather bellows, its folds spreading as it stretches and the specs showing in the gap; close it and the pleats concertina shut.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- Click
- State change
- Card
Techniques3
- clip-path
- Gradient
- CSS transition
Accessibility
Keyboard and screen readers
Specs is a toggle button with aria-expanded; the specs are a list that is hidden from assistive tech while folded.
Reduced motion
It opens and closes without the stretch.
Use it in anything you build, commercial and client work included. Licence
More cards
See allLighthouse · Sutherland
The spare key is under the blue pot. Don't tell Sam.