giniedp / spritespin

jQuery plugin for spriteanimation.
http://giniedp.github.com/spritespin/
MIT License
377 stars 122 forks source link

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

Open edisonchen1985 opened 6 years ago

edisonchen1985 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

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