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
VaultScrollImage Handoff on Scroll
Curved Horizon on ScrollBrowse all 182Zoom-Out Card Transition
  • 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

Image Handoff on Scroll

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
  • ScrollTrigger
  • CustomEase

Setup

npm i gsapregisterPlugin(ScrollTrigger, CustomEase)

More like this

  • Pinned
  • Section transition
  • Reveal
  • ScrollTrigger
  • Sticky

Features.

  • A picture card climbs over the hero card with a thin gap between them, until it fills the screen
  • The same picture then shrinks into an empty slot in the next section's layout
  • The slot is a real element, so your CSS decides where the picture lands
  • The next section's heading rises in line by line near the end of the shrink, and leaves again on the way back up
  • The hero heading drifts up as its card is covered
  • Layout is measured again on resize and once fonts load
  • Respects prefers-reduced-motion: the cards follow the scroll, the heading swaps at once

How to get it right.

Pick a picture that crops both ways

The picture fills the screen, then a 4:5 slot. A square or near-square picture with the subject near the middle holds up in both.

Keep the slot empty

[data-ihf-slot] only marks where the picture lands. Size and place it with CSS (grid column, aspect ratio, max height); the script reads its box.

Keep headings short

The hero heading sits top left of its card, the next heading in four columns beside the slot. Two short rows each fit at 3.75em.

Check the hero contrast

The hero heading sits on a blurred, dimmed picture under a scrim. With a pale picture, strengthen --ihf-scrim.

Variations.

  • Locked to scroll — data-au-scrub="0"
  • Longer handoff — --ihf-length: 340vh
  • A softer landing — data-au-ease="settle" slows the picture as it reaches the slot; "soft" and "smooth" ease both ends
  • More curves — data-au-ease also takes expo-out, expo-in-out, back-out, windup, drive, kick, spring, hop. back-out, spring and hop run past the end and settle back; windup pulls back first
  • Wider or no gap between the cards — data-au-gap="1.25" or "0" (em)
  • Sharper or softer hero — --ihf-blur: 1em; 0 shows the hero picture unblurred
  • A different landing spot — move .ihf_slot to other grid columns
  • A paragraph that fades up — add data-ihf-fade to any element in the next section; it follows the heading 0.18s later
  • Rounded cards — add round 1.25em to both clip-path: inset() rules

Where it fits.

  • Landing pages — hero into the first content section
  • Case studies — cover into the opening spread
  • Editorial — a lead picture that becomes part of the layout

Frequently asked.

No. It runs on native scroll, and with Lenis once Lenis updates ScrollTrigger.

Yes. Move or resize [data-ihf-slot] in CSS. The script measures it, so nothing else changes.

It plays on its own clock so it always finishes rising. It starts at 75% of the shrink and leaves below 60%.

Yes. [data-ihf-hero-copy], [data-ihf-line] and [data-ihf-fade] are all optional.

Related components.

NewPro

Arc Collage Hero

Scroll

Pro

Rising Card on Scroll

Scroll

Pro

Outline Paint Reveal

Scroll