Components / section
Scroll Image Expand
An inset photograph grows into a full-viewport image as you scroll.

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
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.