Component packs › Darkroom › Loupe Zoom
A loupe follows the pointer on a spring with a sharper, larger photo inside the glass; scroll to change the power.
Loupe Zoom is a zoom from Darkroom, a component pack with 7 effects: Seven photo effects that work on real photos, not on drawings of them. Price: $2 for the whole pack.
Built with: hi-res lens, spring follow, wheel zoom.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
light | boolean | ||
autoplay | boolean | ||
src | string | ||
zoomSrc | string | A larger copy of the same photo for the lens. | |
power | number | ||
onZoom | (power: number) => void |
zoom(power: number): voiddestroy(): voidimport LoupeZoom from './LoupeZoom';
<LoupeZoom />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Image effect components.