Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Magnetic Image Trail

Magnetic Image Trail

An image trail cursor effect that pulls project visuals toward pointer movement for portfolios, studio pages, and work indexes.

canvas
DemoDemoDemo

Tune the Real Props

Overview

Magnetic Image Trail turns pointer movement into atmosphere: work previews follow the pointer.

Use it on creative homepages, portfolios, campaign pages, and brand experiments where the cursor can carry the visual language. Keep it off dashboards, checkout, forms, and utility-heavy product screens.

The main risk is restraint. Treat the cursor layer as throwaway: switch it off on touch, keep focus states visible, and let nothing about clicking depend on it. If the page falls apart once you remove the effect, the cursor was doing work it should not own.


Usage Code

page
1import MagneticImageTrail from '@/components/effects/magnetic-image-trail'2 3const page = () => {4  return (5    <>6      <MagneticImageTrail />7    </>8  )9}10 11export default page

Example Production Use Case

A motion design studio can use Magnetic Image Trail on its work page. A cluster of project stills streams along a diagonal path behind the pointer, growing larger toward the center, and moving the cursor faster speeds up the stream and pushes images in the direction of travel.

The outcome is memory. Visitors get a quick, physical sense of the studio's range before they reach the project list, which stays in place as the real way into each case study.


Best Used For

  • Portfolio and studio pages where movement should preview work before the click.
  • Project indexes where trailing imagery adds memory without replacing the actual list.
  • Magnetic Image Trail gives pointer movement a brand role without hiding core controls or content.

Not For

Not for dashboards, checkout, forms, dense product UIs, or any flow where precision beats atmosphere.


Performance Budget

Use one cursor layer, throttle movement with requestAnimationFrame, avoid full-screen filter effects, and disable Magnetic Image Trail on coarse pointers.


Accessibility and Mobile

Switch it off for coarse pointers and leave touch native; anything revealed by the cursor needs a visible or tap-accessible alternative.


Common Mistakes

  • Letting Magnetic Image Trail cover focus rings or clickable controls.
  • Forgetting to disable the effect on coarse pointers.
  • Hiding useful content behind mouse-only movement.

Changelog

reduce-motion applied
Initial release

API Reference

PropTypeDefaultDescription
trailLengthnumber18Maximum visible images in the trail.
magnetStrengthnumber1Strength of magnetic pull, speed boost, and directional push.
scaleInnumber0.06Minimum scale for images entering and leaving the center path.
scaleOutnumber1.48Maximum directional scale for images pushed away by movement.
lerpnumber0.18Pointer smoothing amount; higher values follow faster.
sizenumber1Overall image size multiplier.

Questions, Answered.

When should I use Magnetic Image Trail?

Use it when a portfolio or agency page needs work previews following the pointer — not on utility flows.

Does Magnetic Image Trail work on mobile?

Below 1025px wide the component renders the page content with an open-on-desktop note and no trail, so touch behaviour stays native.

Can Magnetic Image Trail reveal important content?

Only when the same content is visible or accessible without pointer movement. Cursor-only reveals are not suitable for critical information.

How should Magnetic Image Trail behave around links and buttons?

Native click targets, visible focus, hover states, and modal stacking all have to keep working underneath it.

What should reduced motion do for Magnetic Image Trail?

Magnetic Image Trail has no reduced-motion mode: images keep streaming toward the cursor. It never replaces the native cursor.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Butterfly Trail Cursor
Pro
Three.js@react-three/fiber@react-three/drei

Butterfly Trail Cursor

Cursor

Character Trail
Pro
Vanilla JS

Character Trail

Cursor

Coffee Bean Cursor
Pro
Three.js@react-three/drei@react-three/fiber

Coffee Bean Cursor

Cursor

Colorful Cursor Aura
Pro
GSAP

Colorful Cursor Aura

Cursor