303

Memory Match

Flip two cards; matches stay up with a pop, mismatches flip back

Card & groupSwitchUI interactionApp UICSSJS + CSS

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A 4 × 2 memory card game: all cards start face down, and tapping one flips it in 3D to show its picture; after two are flipped, if they match they stay face up, turn the accent color and pop; if not, after about 0.8 s both flip back down; text below shows match progress, and once all are matched a celebration message appears and the deck reshuffles. (CSS: cards transform-style:preserve-3d, both faces backface-visibility:hidden, rotateY(180deg) when .on; JS manages flipped cards and matching)

When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.

How to use it

  1. Tap “Copy AI prompt”.
  2. Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
  3. The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.

More card & group effects

346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts

Browse all effects →