Magnetic Field
Pull a signal node toward the pointer with a soft, bounded attraction.
Open experimentTilt a card toward the pointer inside a bounded perspective.
Reduced motion is enabled. This preview displays the stable result without zoom, displacement or scrambling.
Tilt a card toward the pointer inside a bounded perspective. An independent interaction study built for the Resources archive.
Normalize pointer coordinates and map them to X and Y rotations; leaving restores the neutral orientation.
Actual React demo source. Import this component with the archive stylesheet and pass variant (perspectiveTilt), values, playing, replay and reduced props. The image demos use /images/resources-bg.png.
Loading implementation…
| Parameter | Type | Range | Default |
|---|---|---|---|
| Duration | Number | 0.4–3s | 1.2s |
| Strength | Number | 0.2–1 | 0.6 |
Enable playback, then move across the preview. Hover controls also respond to focus and activation; cursor studies offer arrow-key movement and tap positioning. Reduced motion keeps a static result.
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.
Pull a signal node toward the pointer with a soft, bounded attraction.
Open experimentDraw a continuous frame around an active control.
Open experiment