Here are the frames from Friday. The second pass is much calmer, see what you think.
Genie
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardGenie(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-genieAbout this component
A new message card that leaves like a window minimising to the dock: press Send or minimise and the whole card pours itself down through a funnel into a small chip at the bottom, narrowest last (a sent message lands as Sent with Undo, a minimised one as its draft); press the chip and it pours back up into the card.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers4
- Click
- State change
- Morph
- Card
Techniques3
- clip-path
- Keyframes
- Transform only
Accessibility
Keyboard and screen readers
An article labelled New message. Minimise, Send and the chip are real buttons with aria-labels (the chip says whether it reopens the draft or undoes the send); the hidden one is inert, and focus moves to whichever is showing.
Reduced motion
The card and the chip swap without the funnel.
Use it in anything you build, commercial and client work included. Licence
More cards
See allDorset · June, late afternoon
What do you see?