component

Magnetic

Running live. Go ahead and touch it.

An element drawn toward the pointer as it comes near.

See it in the design system

How it behaves

  • The strength is a prop
  • Inactive on touch devices
  • Inactive under reduced motion

Find more that moves like this

Kind
component
Blueprint
motion-kit 1.0.3
Moves by
hover

Import

import { Magnetic } from "@/components/shared/animation/magnetic";

Props

PropWhat it does
strengthDefaults to 0.35
springDefaults to pointer

Your agent builds it. You take the credit.

Magnetic ships inside the Motion Kit blueprint. These instructions tell your agent to take only this piece.

Version
1.0.3
Files
86
Dependencies
20
Assets
3

Paste this into Claude Code, Codex, Cursor, or whichever agent you trust today.

  • Building a blueprint runs its code, so use an isolated environment.
  • License: UNLICENSED.
  • Every value on this page is demo content that shows one component's behavior. The numbers are placeholders, not real figures.
component

Preview coverflow

A center slot for a product preview, with tilted cards that pass behind it as an auto carousel.

component

Tilt card

A card that tilts in 3D under the pointer, with optional glare.

component

Marquee

An infinite horizontal strip of anything, with a control to nudge it.

component

Custom cursor

A spring-following cursor that grows over marked targets.