Is it possible to use the jQuery Zoom plugin from Jack Moore inside a colorbox?
$(document).ready(function(){
$('a.photo').zoom({url: 'photo-big.jpg'});
});
Is it possible to use the jQuery Zoom plugin from Jack Moore inside a colorbox?
$(document).ready(function(){
$('a.photo').zoom({url: 'photo-big.jpg'});
});
I'm pretty sure you can do this this way :
From : http://www.jacklmoore.com/zoom/
EDIT : It seems to works without the extra wrap
From : @Peter
This is very helpful for me:
Opening the colorbox and then calling the zoom in
onComplete
does not work for me because it doesn't start the zoom automatically if you do not leave the image and then reenter on it. I have to trigger a "mouseover" event.When you zoom typically you have a real big image and you also need to limit the colorbox size to the window size, in that case I used a 100% x 100% colorbox.
The bigger the area of the colorbox is, the greater the chance is that you have your mouse on it and the mouseover is not fired because the image is appearing under your mouse pointer, and your mouse is not entering (going over) the image.
add in zoom.js