An open API service indexing awesome lists of open source software.

https://github.com/ajayns/previewer

A super light-weight JavaScript image previewer [not actively maintained]
https://github.com/ajayns/previewer

image-viewer javascript javascript-library js-library vanilla-javascript

Last synced: about 1 year ago
JSON representation

A super light-weight JavaScript image previewer [not actively maintained]

Awesome Lists containing this project

README

          

# previewer

![Giphy](https://media.giphy.com/media/xUOrwnP6582IGswTaU/giphy.gif)

[Demo 1](https://sidworks.netlify.app/)

A JavaScript image previewer for the web, which uses a Picasa inspired UI and is super light-weight.

## Setup

Make sure you have the previewer.js and previewer.css files (or the minified versions) included in the html document.

```html

```
For adding the preview functionality to a single image, just add a `preview-image` class.

```html

```

For multiple images, arranged as a list, add a `preview-images` class to the parent.

```html






```

For different thumbnail and preview, use `data-previewer` attribute.

```html

```

To finish up, initialize previewer by adding the following code:

```javascript
var previewer = new Previewer();
```

## Features to be added
* Popup and close animations
* Keyboard support
* Add Gulp to auto-minify
* Mobile support
* Add loader
* Remove jQuery dependancy