igorlino / elevatezoom-plus

Enhanced elevateZoom - A jQuery image zoom plugin
http://igorlino.github.io/elevatezoom-plus/
MIT License
162 stars 77 forks source link

responsive gallery #49

Open arbel opened 8 years ago

arbel commented 8 years ago

Hi,

I'm using the elevate zoom with a gallery. I'm trying to get it to work on a responsive site, I'm updating the zoomWrapper and image widths and heights when the window resizes, but once you click on a gallery item it resets. is there a way to run my code on the gallery click event? also on init?

igorlino commented 8 years ago

Not at the moment.

In that case, maybe its better to avoid using the gallery feature, and use a more feature-rich gallery component. So decoupling them.

Within the 3rd part gallery component you very likely can use an onComplete and initialize the elevate zoom when the image changes. (and of course, destroy the zoom before the image changes)

igorlino commented 8 years ago

you may also extend a bit the elevate zoom gallery feature. I have a sever lack of time, and won't have time to properly do it. So your help is most needed. I don't thing it would be complicate to do it.