A little yet powerful framework agnostic headless library to zoom images on the web. It is a typical experience on e-commerce sites. Examples are written with Preact, React, Svelte, Vanilla JS and Vue.
- β Zoom on wheel (scroll & pinch)
- β Zoom on hover
- β Zoom on move
- β Zoom on click
git clone https://github.com/willnguyen1312/zoom-image
cd zoom-image
pnpm install
pnpm buildPlease change all versions from "latest" to "workspace:*" inside the example project you want to start, run pnpm install before executing one of the commands below. I wanted to keep those packages for Stackblitz usage so I use "latest", unfortunately pnpm doesn't understand it during local development π
pnpm start-docspnpm start-preactpnpm start-reactpnpm start-remixpnpm start-nextpnpm start-sveltepnpm start-svelte-5pnpm start-vanillapnpm start-vuepnpm start-solidpnpm start-qwik- react-zoomable-media - The library I wrote for my previous company
- zagjs - The project's architecture is inspired by this library
- TanStack - The project's core headless pattern is heavily inspired by this project - Headless UI
- js-image-zoom - The internal working of zoom image on hover is inspired by this library
MIT Β© Nam Nguyen