StealThis .dev

Memory Card Game

A matching card game with smooth 3D flip animations, move counting, and a win-state celebration.

Open in Lab
vanilla-js css react tailwind vue svelte
Targets: TS JS HTML React Vue Svelte

Code

Memory Card Game

An engaging brain-training game that challenges users to find matching pairs. This component showcases advanced CSS 3D transforms for card flipping and robust game logic for state management.

Features

  • Responsive 4x4 card grid
  • Smooth CSS 3D flip animations
  • Real-time move and match tracking
  • Win-state celebration with stats
  • Board shuffling algorithm (Fisher-Yates)
  • Themeable card backs and icons