A tall pinned section that turns real photographs into one endless tunnel. As you scroll, the camera dives into a small portal inside the current photo, a lit window, a glass door, a round cut in a wall or a gap in the hills, until that portal fills the screen and becomes the next photo, which has its own portal waiting. Scroll progress is smoothed with a lerp, the headline and line swap with every photo, and a rail with a counter tracks the journey. Each slide takes a rectangular, rounded or circular portal placed in image coordinates. Reduced motion swaps photos with a simple fade and dots.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { InfiniteZoomPhotoScroll } from "@/components/hyperblur-pro/infinite-zoom-photo-scroll"
<InfiniteZoomPhotoScroll
slides={[
{ src: "/a.jpg", alt: "A house", title: "Arrive", text: "Lit window.", portal: { x: 0.68, y: 0.64, w: 0.23, h: 0.24, shape: "rounded" } },
{ src: "/b.jpg", alt: "A room", title: "Inside", text: "The end." },
]}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| slides | InfiniteZoomPhotoSlide[] | 5 Unsplash photos | Photos in order. Each has src, alt, title, text, an optional portal { x, y, w, h, shape } and an optional focus { x, y }. Portal values are fractions of the image (center x/y, size w/h); shape is rect, rounded or circle (circle uses w for both sides). The next slide's photo is what appears inside the portal, so the last slide needs none. |
| eyebrow | string | "Infinite zoom" | Small label at the top left. |
| scrollHint | string | "Scroll to fall through" | Hint at the bottom while the first photo is showing. Pass an empty string to hide it. |
| accent | string | "#ffb86b" | Color of the progress rail, active dot and hint line. |
| lengthPerSlide | number | 130 | Scroll distance in vh spent on each transition. Larger values slow the dive down. |
| stageHeight | string | "100vh" | Height of the pinned stage, any CSS length such as 100svh. |
| smoothing | number | 7 | How quickly the picture follows the scroll position. Lower is floatier. |
Source code is included in Pro and above