tarasbogach/jQuery-Magnify — Issue #2: Reflect code to work with the <a> tags
Author: jalz
Created: 2011-10-25 20:47:40+00:00
State: open

Hi Taras,
I've been using your plugin quite well wil my list using the code you gave me a while ago

var el = $("img.reflect").reflect();
var callback = $.proxy(function () {
$(this)
.closest('div.reflect')
.find('img.canvas').css('width', '100%').end()
.magnify({ distance: 200
}, {
width: '130%',
height: '130%'
});
}, el);
setTimeout(callback, 500);

This code works fine for the following:

however it does not work if I make the image a hyperlink and enclose it within the tags like below

Is it the .find('img.canvas').css('width', '100%').end() that needs to be changed to include the a tags?