A Magnifying Lens using Script and CSS
Posted by: K. Scott Allen,
on 23 Aug 2011 |
View original | Bookmarked: 0 time(s)
Magno is a something I put together because well, just because. The idea is to provide a magnifying lens effect using a background image and background position animation. The lens tracks the position of the mouse, with a slight delay (debouncing, to be exact). You can try it here: http://jsbin.com/adobuv (thanks to @austegard for putting up the jsbin). The "magnifier" is an absolutely positioned div with borders curved to perfection. function makeMagnifier() {
var src = settings.src ||...