Skip to content
← Back to experiment
[ EXP-003 / PLAYGROUND MODE ]

Magnetic Field / Playground

Pull a signal node toward the pointer with a soft, bounded attraction.

HoverReactWeb APIsCSSpointertouchkeyboard
EXP-003 / LIVE PREVIEW
FIELD / POINTER ATTRACTION
REDUCED MOTION / STATIC RESULT

Reduced motion is enabled. This preview displays the stable result without zoom, displacement or scrambling.

01 / Overview

A small magnetic target adds tactile feedback to a call to action. Pointer coordinates remain bounded so the control stays reachable.

02 / How it works

Pointer position is measured relative to the field center and limited by the configured radius. A single scheduled frame updates the node transform. Leaving the field returns it to center.

03 / Implementation

Actual React demo source. Import this component with the archive stylesheet and pass variant (magneticField), values, playing, replay and reduced props. The image demos use /images/resources-bg.png.

Loading implementation…

04 / Parameters

ParameterTypeRangeDefault
AttractionNumber0.05–10.35
Field radiusNumber80–260px180px
Return durationNumber0.1–1s0.35s

05 / Usage & accessibility

A working demonstration created for this archive, not a claim of historical client work. Activate manually. Reduced motion uses a static result. Animation handles and listeners are released on unmount.

Requires a current browser with Web Animations, requestAnimationFrame and Pointer Events. Background imagery is decorative; essential labels remain in the document. The magnetic target supports tap and keyboard activation.

Related experiments.