Zoom Image
A little yet powerful framework agnostic headless library to zoom images on the web
Install / Use
npx skills add willnguyen1312/zoom-imageInstalls into whichever agent you are using.
README
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.
- ✅ Zoom on wheel (scroll & pinch)
- ✅ Zoom on hover
- ✅ Zoom on move
- ✅ Zoom on click
Development
git clone https://github.com/willnguyen1312/zoom-image
cd zoom-image
pnpm install
pnpm build
PR contribution
Please run pnpm changeset and input your change before open PR
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 Svelte 5
pnpm start-svelte-5
With Vanilla JS
pnpm start-vanilla
With Vue
pnpm start-vue
With Solid
pnpm start-solid
With Qwik
pnpm start-qwik
Relevant projects
- 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
Sponsor
<a href="https://www.buymeacoffee.com/namnguyenle" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
License
MIT © Nam Nguyen
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
imsg
385.5kUse the imsg CLI from OpenClaw agents for iMessage/SMS DMs, groups, replies, reactions, polls, watching, and private-API actions.
Agent Development
140.6kThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or…
review-duplication
106.4kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
