
Description
Zoom Image is a headless JavaScript library that adds product-image zooming to a web page, the kind of zoom common on e-commerce sites. It supports zoom on wheel and pinch, zoom on hover, zoom that follows the pointer, and zoom on click. Because it is headless, it supplies the behaviour without imposing styles, so you write the markup and look yourself. The README includes example projects for Preact, React, Remix, Next, Svelte, Svelte 5, Vanilla JS, Vue, Solid and Qwik, along with a docs site. The repository uses pnpm workspaces, and the README lists the commands for running each example. Contributors add a changeset with pnpm changeset before opening a pull request. The library is released under the MIT license, as the README footer states. The README also credits projects that inspired it, including zagjs and TanStack. It is for front-end developers who want a zoom feature for product photos without a full UI kit.…
Highlights
- Zoom on wheel and pinch
- Zoom on hover, on move and on click
- Headless, so styling stays with you
- Examples for React, Vue, Svelte, Solid and more
- MIT licensed
Ratings & Reviews
No ratings yet
Be the first to rate zoom-image.
People also visit

react-inner-image-zoom
A React component for magnifying an image within its parent container

vue-image-zoomer
image zoom component for Vue.js 2 & 3, that also works on touch devices
zoom-image
A little yet powerful framework agnostic library to zoom image on the web
zoom-image FAQ
What is a headless library?
It provides the zoom behaviour and leaves the markup and styling to you, so it fits into any design.
Which frameworks have examples?
The README includes examples for Preact, React, Remix, Next, Svelte, Svelte 5, Vanilla JS, Vue, Solid and Qwik.
What license is it under?
MIT, as the README footer states.
How do I run the examples?
Run pnpm install first, then the command for the example you want. The README notes that the example versions must be set to workspace before running locally.
What are the best zoom-image alternatives?
Popular alternatives to zoom-image include react-inner-image-zoom, react-easy-panzoom and vue-image-zoomer. See all zoom-image alternatives










