Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultCursorPop-Up Image Trail
Noise Image DissolveBrowse all 182Slanted Wipe List
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Pop-Up Image Trail

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap

Setup

npm i gsap

More like this

  • Hero
  • Trail

Features.

  • Images pop up on the cursor as you move, one every 50px of travel by default
  • Each pops in with a small overshoot at a random tilt, then shrinks straight back to nothing: one second from start to finish
  • The trail cycles through your images in order, so a set of eight never repeats back to back
  • Every image keeps its own shape at one fixed width, so portraits and landscapes mix freely
  • Images are preloaded once, and no more than 50 are on screen at a time; one that's slow or fails to load is skipped, so no pop is empty
  • The trail draws above your headline and never blocks clicks
  • Three knobs: spacing, tilt and image width
  • Off on touch screens and with prefers-reduced-motion; the headline shows on its own
  • GSAP only

How to get it right.

Give it eight or so images

The list loops. With three images the pattern shows within a second of moving; six to ten feel like a stream. Use one shoot or one series so the trail reads as a set.

Keep the images small and light

Each pop is about 11em wide on screen. 500–600px wide WebP files are plenty; anything larger sits out of the trail until it has loaded.

Spacing sets the density

data-au-travel is how far the mouse moves between images. 30px stacks them into a thick ribbon, 50px (the default) leaves a little overlap, 100px+ scatters single frames.

Let the headline breathe

The trail covers the text as you move across it, then clears within a second. Big, short headlines survive that; small body copy under the trail gets lost.

Variations.

  • Default — 50px spacing, ±20° tilt, 11.25em wide
  • Ribbon — data-au-travel="25" data-au-tilt="5": a dense, almost straight band
  • Scatter — data-au-travel="120" data-au-tilt="35": single frames flung about
  • Big frames — --imt-width: 16em for a hero with few, large images
  • Your colours — override --imt-bg, --imt-text and --imt-muted on the section

Where it fits.

  • Photographer and studio heroes — the trail is the portfolio teaser
  • Event and festival pages — last year's photos following the pointer
  • Product launches — a run of product shots behind the name
  • 404 pages — something to play with while people find their way

Frequently asked.

Replace the <img> tags inside <template data-imt-images> with yours, in the order you want them. The script reads that list once when it starts.

No. Every trail image is --imt-width wide and keeps its own aspect ratio, so you can mix portrait and landscape.

It needs a mouse. On touch screens and with reduced motion the layer is hidden and only the headline shows.

Yes. The trail layer ignores the pointer, so anything under it stays clickable.

Yes. Add <p class="imt_text"> after the title in .imt_content, or pass it in children in React. The styles are still in code.css.

Related components.

Free

Dither Reveal Cursor

Cursor

Pro

Cursor Push Tags

Cursor

Pro

Mesh Gradient Hero

Cursor