Memory Flip

The pairs game, reimagined: holographic tilting cards, a peek at the start, light beams between pairs, streak multipliers and four growing levels.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Animated · Full motion: idle animation, physics and effects. animated (default)

Each level opens with a one-second peek at the whole deck. Cards tilt toward the cursor with a foil sheen, found pairs are joined by a beam of light, consecutive matches multiply your points, and one hint per level highlights a pair. Boards grow 6 → 8 → 10 → 12 pairs; best score saved. Pass your own faces (emoji, letters or logos); it shuffles on the client, so no hydration mismatch.

Installation

$ npm i @pickui/memory-flip

Publishing soonUntil it’s on npm, use the CLI or Manual tab. The API below stays the same.

Usage

example.tsx
import { MemoryFlip } from "@/components/pickui/memory-flip";

export default function Example() {
  return <MemoryFlip />;
}
Brand & product memory gamesKids & educationEvent standsWaiting screens

Props

PropTypeDefaultDescription
facesstring[]—Card faces; levels use the first 6 / 8 / 10 / 12.
storageKeystring | null"pickui-memory-best"Best-score key.
animatedbooleantruefalse = instant flips, no tilt, beams or confetti.

Accessibility

  • Every card is a labelled button; arrow keys move between cards; moves, time and score are announced.
  • Reduced motion: instant flips, no tilt, beams or confetti.