A simple jQuery image viewing plugin.
npm install imageviewer   
> A simple jQuery image viewing plugin. As of v1.0.0, the core code of Viewer is replaced with Viewer.js.
- Demo
- Viewer.js - JavaScript image viewer (recommended)
- jquery-viewer - A jQuery plugin wrapper for Viewer.js (recommended for jQuery users to use this instead of Viewer)
``text`
dist/
├── viewer.css
├── viewer.min.css (compressed)
├── viewer.js (UMD)
├── viewer.min.js (UMD, compressed)
├── viewer.common.js (CommonJS, default)
└── viewer.esm.js (ES Module)
`shell`
npm install imageviewer jquery
Include files:
`html`
Initialize with $.fn.viewer method.
`html




`js
var $image = $('#image');$image.viewer({
inline: true,
viewed: function() {
$image.viewer('zoomTo', 1);
}
});
// Get the Viewer.js instance after initialized
var viewer = $image.data('viewer');
// View a list of images
$('#images').viewer();
`Options
See the available options of Viewer.js.
`js
$().viewer(options);
`Methods
See the available methods of Viewer.js.
`js
$().viewer('method', argument1, , argument2, ..., argumentN);
`Events
See the available events of Viewer.js.
`js
$().on('event', handler);
`No conflict
If you have to use other plugin with the same namespace, just call the
$.fn.viewer.noConflict method to revert to it.`html
``It is the same as the browser support of Viewer.js. As a jQuery plugin, you also need to see the jQuery Browser Support.
Maintained under the Semantic Versioning guidelines.