jackmoore / zoom

jQuery plugin for zooming images on mouseover.
http://www.jacklmoore.com/zoom/
MIT License
1.54k stars 459 forks source link

Change magnification after init #89

Open cmeeren opened 9 years ago

cmeeren commented 9 years ago

Is it possible to change the magnification level after init, without destroying and re-initializing (which causes a visible zoom-out and zoom-in effect)? The only method I have found which do not cause any unwanted visible effects is to re-initialize (without destroying) using the new magnification level, trigger a click somewhere (e.g. from a mousewheel event, which is what I'm trying to do) after some milliseconds, and finally removing the old zoomImg using $('img.zoomImg')[0].remove(). This seems an ugly hack at best.