Measured entry

tripled-native-magnetic

cursor-effectminimal-flatmotion on file

A client-side React wrapper that makes its child follow the pointer and spring back, with optional hover and press scaling. It ships as a shadcn registry component, renders an animated div, button, or anchor, and depends on Framer Motion plus a local cn utility backed by clsx and tailwind-merge.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-native-magnetic at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-native-magnetic at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-native-magnetic at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for tripled-native-magnetic
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal70.5 KB (136.0 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A solid fit for selective desktop-facing accents when Framer Motion is already present. The spring behavior is configurable and the wrapper mounts cleanly, but the mouse-first interaction, missing reduced-motion handling, and narrow element API make it a poor universal wrapper for links or controls.

Use it if

  • You want a restrained magnetic treatment for a small set of prominent calls to action.
  • Your project already uses Framer Motion and can absorb another motion-based interaction.
  • You need tunable pull, spring response, and hover scaling without building the pointer math yourself.

Skip it if

  • Your experience is touch-first, since the magnetic movement is driven by mouse events.
  • You need reduced-motion behavior out of the box; the component does not consult the user motion preference.
  • You need arbitrary anchor, button, accessibility, or event props, because its public prop surface is deliberately narrow.
  • You do not otherwise use Framer Motion and want to keep the interaction dependency-light.

Install

Installation record for tripled-native-magnetic
Declared dependenciesframer-motion, react, clsx, tailwind-merge
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn project, add React, Framer Motion, clsx, and tailwind-merge; provide a local cn helper or replace that import; keep the client-component directive; and ensure your styling pipeline supplies the utility classes used by the wrapper.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Alternatives

Other published entries for the cursor-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.