akulubala / vue-product-zoomer

Zoom Prodct Image, useful for e-shop website
http://www.yoohooworld.com/demo.html
MIT License
293 stars 69 forks source link

feature: would love to see a simple single image support #59

Open heaversm opened 4 years ago

heaversm commented 4 years ago

If you just want to zoom a single image, it'd be nice to have a syntax where you could just wrap an image tag with a product-zoomer and not have to pass an array of images, just options, like:

<Product-Zoomer zoom-factor="2">
<img/>
</Product-Zoomer>

Great library though for galleries.

samjonesigd commented 4 years ago

@heaversm https://www.npmjs.com/package/vue-image-zoomer

MikusMarkevicsMagebit commented 3 years ago

This package uses Drift zoom if you look into the src folder. https://github.com/imgix/drift Not a Vue specific solution, but you can workaround it by attaching to DOM elements directly.