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

is it possible to zoom in/out the images and spin the images #54

Open
edisonchen1985 opened this issue Jul 4, 2018 · 3 comments
Open

Comments

@edisonchen1985
Copy link

Hi, we are using this spritespin to show a set of images on iPhone. It works perfect to have a 360 degree view when we scroll left/right on the phone screen. But right now we want to zoom in/out and spin the images, is it possible for spritespin to achieve this kind of effects?

PS, we have tried the plugin of zoom, but it only zoom in the ONLY image which you double clicked, can not spin this set of images any more under this situation.

Thanks a lot in advance for any kind instructions.

@giniedp
Copy link
Owner

giniedp commented Jul 4, 2018

i will add an option to the zoom plugin, to enable the rotation. If you need that urgently you could copy the implementation of the zoom plugin and simply remove this line

https://github.com/giniedp/spritespin/blob/master/src/plugins/render-zoom.ts#L64

@edisonchen1985
Copy link
Author

Hi giniedp, thanks a lot for your response. I have tried with what you suggested, but it looks like it still does not work. I simply removed the code flag(data, 'dragging', false) in the sprintspin.js file. For your reference, I put a demo with the link: https://edisonchen1985.top/spritespin

At the end, I would like to see if it is possible to be like this one: https://www.ajax-zoom.com/examples/example33_clean.php
(Users pinch on the iPhone screen to zoom in/out and rotate the image)

Thanks.

@Jogii
Copy link

Jogii commented Jan 11, 2019

I also have same kind of requirement, i want to zoom in and out on mouse scroll. I there any option available?

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