Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
heaversm opened this issue May 27, 2020 · 2 comments
Open

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

heaversm opened this issue May 27, 2020 · 2 comments

Comments

@heaversm
Copy link

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
Copy link

@MikusMarkevicsMagebit
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants