Magnetic Button Component
The MagneticButton
component is an interactive UI element that creates a magnetic effect, pulling the cursor towards the button when it is within a certain range. This component is highly customizable and provides a unique user experience.
Features
- Magnetic Effect: Attracts the cursor when it is within a defined range.
- Customizable Intensity: Adjust the magnetic pull strength.
- Flexible Interaction Area: Choose between self, parent, or global interaction areas.
- Smooth Animations: Uses spring-based animations for smooth transitions.
- Lightweight: Minimal dependencies and optimized for performance.
Loading component preview...
Source Code
Props
Dependencies
This component uses the following third-party dependencies: