willnguyen1312 / zoom-image

A little yet powerful framework agnostic headless library to zoom images on the web
https://willnguyen1312.github.io/zoom-image/
MIT License
292 stars 8 forks source link
frameworks headless nextjs preact qwik react remix solidjs svelte vanilla-js vue zoom

Github Checks Github Stars


Zoom Image

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.

Development

git clone https://github.com/willnguyen1312/zoom-image
cd zoom-image
pnpm install
pnpm build

Commands

Please 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 🙈

With Docs

pnpm start-docs

With Preact

pnpm start-preact

With React

pnpm start-react

With Remix

pnpm start-remix

With Next

pnpm start-next

With Svelte

pnpm start-svelte

With Vanilla JS

pnpm start-vanilla

With Vue

pnpm start-vue

With Solid

pnpm start-solid

With Qwik

pnpm start-qwik

Relevant projects

Sponsor

Buy Me A Coffee

License

MIT © Nam Nguyen