Labs

Components

Interactions

Direction-Aware Flip Card

A flip card that swings toward the cursor's entry side, with cursor-tracked sheen, parallax tilt, and a lifting floor shadow that quietly pull you in for another flip.

All components

Installation

Coming soon. Components will be available via the registry once checkout goes live.

Usage

<DirectionAwareFlipCard
  frontSrc="/cards/front.webp"
  backSrc="/cards/back.webp"
  width={360}
  height={520}
  radius={24}
/>

Props

PropTypeDefaultDescription
frontSrc*stringImage shown on the front face.
backSrc*stringImage shown on the back face.
frontAltstringAlt text for the front image.
backAltstringAlt text for the back image.
width*numberCard width in px.
height*numberCard height in px.
radiusnumber20Border radius in px.
durationnumberFlip duration in seconds. Used as a fallback when the spring is disabled.
classNamestringClasses merged onto the card root.

Use cases

  • Trading-card / collectibles UI

    Reveal alternate art or stats on the back of a card without leaving the page.

  • Pricing tier compare

    Flip from headline pricing to detailed feature breakdown.

  • Profile / member card

    Front: portrait + name. Back: bio + links.

  • Event ticket / boarding pass

    Cover art on the front, QR code and itinerary on the back of a digital pass.