Origami Unfold Card

A trail ticket that unfolds like a paper map: press the cover and two creased panels swing down in sequence on real CSS-3D hinges, catching light as they flatten, while the route draws itself and the last panel runs an async save.

Try it: Press the cover (or Enter) to unfold / fold.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/origami-unfold-card.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/origami-unfold-card. You can also copy the source into components/ui/origami-unfold-card.tsx (view on GitHub).

Usage

import { OrigamiUnfoldCard } from '@/components/ui/origami-unfold-card'

Props

Component props
PropTypeDefaultNotes
title / subtitle / tagstring—Cover copy.
srcstring—Optional cover image; a generated dawn-ridge illustration otherwise.
stops{ name, time }[]—Route stops listed on the last panel.
stats{ label, value }[]—Three small stats.
actionLabel / onActionstring / () => Promise<void | boolean>'Save to trail log'Async action; false / reject shows retry.
open / defaultOpen / onOpenChangebooleanfalseControlled or uncontrolled fold state.

Dependencies

  • motion
  • lucide-react
  • Lenticular Shift Card

    A postcard printed on a ridged lenticular sheet: tilting interlaces the scenes in fine vertical blinds that sweep across the print while a specular band rides the ridges.

  • Folder Fan Showcase

    Social post cards wait inside a frosted-glass folder, peeking over the rim of a blurred front pocket. Hover or focus and they rise and fan out on staggered springs; pick one and it lifts clear of…

  • Curved Tile Wall

    A gallery bent onto a sphere section in real CSS 3D: mixed-height frames drift, swing with drag, pop toward you on hover and open in a focused lightbox.

  • Swipe Carousel Post

    An Instagram-style multi-slide post card: drag or swipe the media and the track snaps on a spring, a segmented bar fills with slide progress, the dot pager shrinks toward the edges and a double-tap…

  • Fan Deck Carousel

    Poster cards fanned around an upright hero card; swipe, arrow keys or buttons re-fan the hand on springs while a blurred copy of the active art crossfades behind.

  • Editorial Spread Card

    A magazine cover on real CSS 3D: hover and it lifts off its spine, click and it swings open on a hinge while the issue slides to centre, revealing a two-page spread with a pull quote, deck and…

See all 27 Cards components