Pair
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardPair(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-pairAbout this component
Two overlapping portraits with a glowing lime join button where they meet, and a faint circuit plugging into them from the edges. Hover a face and it steps forward while its name tag rises; press the plus and the two slide together inside one glowing ring, the plus turning into a close badge on its rim.
Triggers
- Card
- Hover
- Click
- Glow
- Spring
- State change
- Ambient
Techniques
- SVG
- Keyframes
- CSS transition
- Radial gradient
- CSS variables
- Spring
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Each portrait is a button named for the person, and the plus is a toggle with aria-pressed whose label switches between 'Pair them' and 'Split the pair'; every control shows a focus ring and hover effects also follow keyboard focus.
Reduced motion
Reduced motion stops the breathing and travelling sparks.
Use it in anything you build, commercial and client work included. Licence
More cards
See all5 left
ORBT
152.75, up 7.27 percent over one day