Loupe demo
(mouse over the image)
Docs, source code:
https://github.com/nishanths/loupe-js
Rectangle
Circle
original image size: 1920 x 1080, loupe magnification: 2.25x