Magnetic DotsA dense grid of dots that get magnetically pulled toward the cursor, snapping back with a satisfying elastic bounce when you leave.

BackgroundsCanvasInteractive

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/magnetic-dots
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

More like this