I have an image! When the mouse hovers over the image, is it possible for jQuery (or CSS!) to “detect” an area around the mouse, capture the image underneath, and then zoom that image?
So! Unlike the jQuery zooms I’ve seen online, where there are two images – small and large – this one doesn’t use any fancy algorithm to work out where the mouse is in relation to the small, and then show that section of the large.
Instead, this would presumably use a fancy algorithm to catch the area around the mouse, and then blow it up!
If there is a plugin that does this, that would be wizard. If not, does anyone know if it is possible to :
a. capture the screen around the mouse using jQuery/JavaScript/CSS/HTML5?
b. blow up a captured image using jQuery?
Here is some code I wrote a while ago to “zoom” thumbnail images for a slideshow:
Sample HTML looks like this:
And some CSS to wrap-it-up:
Here is a demo: http://jsfiddle.net/Bbsze/1/
If you are interested in this code I can write-up some documentation to make it a bit more clear. Also note that this code leverages the CSS3
transformproperty so old browsers would need a little more code.