Pair

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-pair

About 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 all
$12/moOne seat
PlanGet code
Nova
Receive48
Kite
SwapGet code
TearGet code

ORBT

152.75, up 7.27 percent over one day

TickerGet code