Component packs › Postmark › Postcard Flip

Postcard Flip

Drag it and it follows your hand, throw it and it keeps turning, bending against the turn and lifting off the table before it settles.

Postcard Flip is a card from Postmark, a component pack with 6 mail controls: Send buttons and forms made of paper, wax, stamps and ink. Price: $2 for the whole pack.

Built with: drag and throw rotation, bend from angular speed, moving contact shadow.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Postcard Flip props

PropTypeDefaultDescription
placestring"Lisbon"Place on the front. Default "Lisbon".
captionstringSmall caption under the place name.
messagestringMessage on the back (handwriting).
tostring[]Address lines on the back.
backbooleanStart showing the back.
onFlip(showingBack: boolean) => void
darkboolean
autoplaynumber | falseShowcase mode: turns itself over every N ms.

Methods on the ref

Use it in React

import PostcardFlip from './PostcardFlip';

<PostcardFlip />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Postmark

Good for: Skeuomorphic UI.