Genie

New message

To Mara Lind

Here are the frames from Friday. The second pass is much calmer, see what you think.

Saved 2 min ago
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-genie

About 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 all
Night runThu 21:40 · Riverside
8.4km
41:12time
4:54/km
GlowGet code
HangingGet code
InfraredGet code

What do you see?

InkblotGet code