Skip to content
Cards

MagneticCard

The card leans toward the pointer like a magnet, the content inside pulls a little further, and both spring back when the pointer leaves.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—Card content.
strengthnumber0.15How far the card follows the pointer, 0 to 1.
depthnumber0.5Extra pull on the content inside.
classNamestringdark violet cardReplaces the default look.