James

This is very cool, and worked first time when I experimented with it.
One question: what if I want to replicate the magnifying glass across numerous images?
One observation: on older IE versions the magnifying effect works, but without the glass around it – because older IE doesn’t support one or both of the border-radius or the box-shadow in CSS3. But that’s always the issue with older IE of course.

Jamison

Nice Work. I have done a similar thing by using HTML5 Canvas and it also works fine, I used Canvas because it gives us a lot of flexibility and we can even zoom-in other Canvases. If you like to see my work, I would love to share it with you. :-)

Andrew

This is just beautiful! Thank you.

Could anyone tell me how to get the magnifying glass to offset about 50px above the click? I am trying to use this on a touch device and my thumb keeps getting in the way.

todi

@Andrew: Did you know you can play with the code directly here on the site?
Look for the following line in js and subtract by 50, done!

var my = e.pageY – magnify_offset.top;

Stijn

Marvellous work!
By adding cursor:crosshair; it becomes even cooler ;-)

I’m trying to use a square image (large=1200px and small=200px) instead of rectangular like in your example.
When I hover the image, only the top left side can be viewed.
What do I have to change in coding to make it work with a square image?

Regards,
Dan

m.karthi

i apply the code fully but it not working. image is appear but zooming is not working

JorenR

This is brilliant, work perfect! But does anyone know how I make the small image disappear went the magnifier is on because when I go to the edge of the picture i still see the small image behind the zoomed image

Thanks in advance!
Joren

kyle

The background image is hard coded in the CSS??? This is not acceptable in real world scenarios.. Love how it looks though

Using Net Process Television set, you will not
have to settle for this sort of complications.
By using comparison, you will find six to eight Flash
connections. That means you can shift between power levels on-the-fly and tune for special
parameters like tire size.

Aw, this was an exceptionally nice post. In concept I would like to spot in writing such as this moreover – spending time and actual effort to create a exceptional article… but so what can I say… I procrastinate alot via no indicates find a approach to go completed.
Longchamp Le Pliage Fuchsia Pink http://carloans.co.uk/assets/LpxdR/