A simple thumbnail viewer, like that found on Medium.com or iOS
npm install image-zoomZoom an image to full-screen, as seen on Medium.com. It uses transforms for buttery smoothness, but should still work on older browsers given polyfills for classList & bind. Demo here
Install using Duo or NPM for use with browserify.
```
$ npm install image-zoom
``
var Zoom = require('bmcmahen/image-zoom');
or use the standalone build in dist using the global Imagezoom.
You can use markup (much like Bootstrap) for initiating zoom on certain elements.
`html`
Or you can use the javascript API, like in the example below.
`html
`
Zoom in.
Zoom out.
Enable the overlay when zooming into the image.
Set the padding of the zoomed image.
Use a plugin.
`javascript``
var zoom = require('image-zoom');
var z = zoom(document.querySelector('img'));
z.on('shown', function(){
// our element is zoomed in
});
MIT