npx zenora-ui-registry@latest add magnetic-cards
Magnetic Cards
Hover 317 views•102 uses
Get this component
Copies the component into your project, installs what it needs, and pulls down its images. Nothing to download by hand.
npx zenora-ui-registry@latest add magnetic-cardsWrites to components/zenora-ui/ by default; override with --dir. The file is yours to edit; there is no package to keep in sync.
A set of cards that fan out symmetrically and respond to cursor proximity with a smooth, physics-based magnetic push effect.
KEY FEATURES
- ·Cards arrange themselves in a perfectly symmetrical fan using calculated rotation spreads
- ·Moving the cursor near the cards pushes them away using spring physics
- ·Neighboring cards influence each other for a cohesive, organic wave effect
- ·Cards dynamically tilt and rotate based on mouse velocity and position
Props
11 propertiesimagesstring[]5 imagesbackgroundcolortransparentcardSizenumber260cardSpacingnumber187rotationSpreadnumber6proximityRadiusnumber500pushForcenumber10tiltAmountnumber10neighborInfluencenumber20springStiffnessnumber5bounceFrictionnumber85



