Zoom Through
A scroll-linked fly-through. A headline hangs in the air with photos scattered around and behind it at different depths, and one small photo in the middle. As the page scrolls you fly forward: the headline rushes past, the photos stream out to the edges and past you, and the middle photo grows until it fills the screen, where your own content comes up over it.
How It Works
The section's inner frame is sticky, and the perspective is worked out in JavaScript: each photo is drawn with a plain 2D translate and scale (a point at depth z shows P / (P - z) times its size, that much further from the middle), laid out at the largest size it's shown and only ever scaled down, so it's rasterised once and never breaks up into tiles on a fast scroll the way CSS 3D layers do. The middle photo is the size of the screen, set far back so it looks a fifth as wide; every other photo has its own depth in front of it, the depths spaced evenly so they pass in a steady stream and the last is gone while the middle photo is still well short of the edges, and starts at the distance from the centre that carries it off the edge of the screen just as it reaches you, spread round the middle by the golden angle. Far photos are hidden in a fog and come out of it as you approach, so the opening is a clean ring of near ones and the rest stream out of the distance all the way in. Scrolling moves everything toward the camera by the same eased distance, which is what makes near things rush past and far ones grow; the middle photo arrives at depth zero at 90% of the scroll, filling the screen at its true size, and the last stretch holds it there while your content plays in (and leaves quickly if you scroll back). Every photo shows the same corner radius at rest; the middle photo's squares off as it reaches the edges. Things fade before they reach the camera. On load, once the photos have decoded, the middle photo travels up from far behind and the others fly in after it, nearest first, each from well behind its place, so the perspective carries them out from the middle to their spots; then the headline's words rise in. It's skipped with reduced motion, or when the page opens partway through the flight.
Use It
Install it with shadcn, or copy the file into your components folder, then use it like this. Change a setting in the demo and the example picks it up. Works with Next.js (App Router) and any React 19 project on Tailwind CSS v4.
npx shadcn@latest add @reacthive/zoom-through<ZoomThrough items={photos} headline="Step Inside.">
<h3>Your content over the photo</h3>
</ZoomThrough>- items is a list of { src, alt }: the first is the photo you fly into (a landscape one fills the screen best); the rest, eight to twelve of them, float around it. headline is the line you fly through. children appear over the first photo once it fills the screen.
- length is how much page scroll the flight takes, in screen heights. The section pins while you fly, then scrolls on with the full-screen photo, so it makes a strong opening for the page.
- The view leans slightly toward the pointer at the start, settling as the photo closes in. With reduced motion the flight follows the scroll exactly, without the soft follow.
- No packages and no WebGL: everything is placed in 3D with CSS perspective, so the photos and text stay sharp all the way in.
More Scroll

Card Deal
Scroll

Step Stack
Scroll

Arc Gallery
Scroll
Your Next Site Starts with a Live Demo.
Click around first. What you see is exactly what you download.