Components / section

Scroll Image Expand

v1.0.0 · premium

An inset photograph grows into a full-viewport image as you scroll.

Scroll Image Expand demo

Implementation

An inset photograph grows into a full-viewport image as you scroll.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function ScrollImageExpand({ title, image, description, startWidth = 36, scrollLength = 120, className }: Props) 
  const root = useRef<HTMLElement>(null);
  const stage = useRef<HTMLDivElement>(null);

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · An inset photograph grows into a full-viewport image as you scroll.

Frequently asked questions

How do I set the starting image size?

Use startWidth to set the inset width as a percentage of the available width.

Can I give the image more time to expand?

Increase scrollLength to spread the expansion across more vertical scrolling.