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
VaultScrollFrame to Frame Image
Scaling Row SliderBrowse all 182Fog Image Swap
  • 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

Frame to Frame Image

This one is free. Make an account and the code is yours, no card needed.

Create a free account

What you'll need.

Install

  • gsap
  • ScrollTrigger

Setup

npm i gsapregisterPlugin(ScrollTrigger)

More like this

  • Hero
  • ScrollTrigger
  • Flip

Features.

  • One photo travels down a long section as you scroll and lands in each empty frame in turn, sliding, resizing and turning on the way
  • Four scenes ship: a centred hero, a 3:4 frame on the left, a square tilted −3° on the right and a wide 16:10 frame under the last words
  • The photo keeps an even pace: each leg of the trip gets a share of the scroll equal to its share of the distance down the page
  • Frames are plain empty boxes in your layout; move or resize one and the photo follows it
  • Big stacked words, muted / bright / muted, scale down at 992px, 768px and 480px with the frames
  • Rebuilt after a resize and once web fonts have loaded
  • Respects prefers-reduced-motion: the photo jumps from frame to frame instead of gliding

How to get it right.

Use a photo that crops well

The same picture fills a 3:4, a square and a 16:10 frame with object-fit: cover. A square photo with its subject in the middle survives every crop.

Leave space between frames

The trip runs from the first frame's centre at the middle of the screen to the last frame's centre at the middle of the screen. Scenes about a screen tall give each move room to read.

Tilt with the variable, not a transform

Set a frame's tilt with --fzn-zone-tilt (e.g. style="--fzn-zone-tilt: 4deg"). The script reads that variable; a transform on the frame is not picked up.

Pick the catch-up

data-au-scrub="1" lets the photo trail the scroll by a second, which smooths out wheel steps. 0 locks it to the scroll bar.

Notes are optional

Scenes ship with just the words. For a short line under them, add <p class="fzn_note"> after .fzn_words (note in React).

Variations.

  • Locked — data-au-scrub="0"
  • Straight start — data-au-tilt="0"
  • More stops — add another scene with an empty [data-fzn-zone]; the photo visits every frame in page order
  • Your palette — override --fzn-bg, --fzn-fg, --fzn-muted, --fzn-note and --fzn-frame on the section

Where it fits.

  • Product stories — one hero shot carried through the features
  • Portfolios — a single project image walking through the case study
  • Editorial — a photo essay built around one picture
  • Launch pages — the product shot landing beside each claim

Frequently asked.

Yes. Any number of [data-fzn-zone] boxes from two up works; the photo visits them in page order and the timeline is shared out by distance.

The first frame uses data-au-tilt (10° by default) rather than its own tilt. Every later frame uses its --fzn-zone-tilt.

They're meant to be empty: the photo sits on top of them (z-index: 4) and blocks anything inside. Put words beside the frame instead.

No. It measures each frame itself and tweens the photo's x, y, width, height and rotation, so it only needs GSAP and ScrollTrigger.

No. It scrubs on scroll position, so it works with native scrolling and with any smooth-scroll library that updates ScrollTrigger.

Related components.

NewPro

Arc Collage Hero

Scroll

Pro

Rising Card on Scroll

Scroll

Pro

Outline Paint Reveal

Scroll