Dev Design Library

Magnetic Button

Leans toward the cursor and springs back on leave.

Magnetic Button preview
Library
Velora UI
Framework
React
Type
ui
License
MIT
Dependencies
motion
Install
npx shadcn@latest add https://velora.colorlib.com/r/magnetic-button.json
Files
  • src/components/velora/magnetic-button.tsx
  • src/lib/utils.ts
Source
https://github.com/ColorlibHQ/velora-ui

Categories

More from Velora UI