项目
在 GitHub 查看
willnguyen1312/zoom-image
关于
A little yet powerful framework agnostic headless library to zoom images on the web
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
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
License
MIT © Nam Nguyen
探索相关项目
加载中…
