Scroll Zoom Reveal
An inline thumbnail sits between two words. Scrolling grows it to fill the screen, pushing the words apart as they fade and blur. Scroll-scrubbed with spring smoothing, and it reverses on the way back up. Scroll inside the preview.
Installation
Copy the install prompt
Paste it into Claude Code, Cursor or any coding agent inside your project. It includes the steps, a usage example and the full source.
Usage
import { ScrollZoomReveal } from "./components/ScrollZoomReveal";
export function Section() {
// Reads window scroll by default; pass scroller={ref} inside a scrolling element.
return (
<ScrollZoomReveal leading="Above" trailing="the shoreline" radius={24}>
<video src="/coast.mp4" autoPlay muted loop playsInline />
</ScrollZoomReveal>
);
}