All Projects → ajayns → previewer

ajayns / previewer

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

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to previewer

awesome-libraries-resources
Awesome js and css libraries for web development.
Stars: ✭ 32 (+33.33%)
Mutual labels:  js-library, javascript-library
Selection
✨ Selection - A simple and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies. Full mobile and scroll support.
Stars: ✭ 1,371 (+5612.5%)
Mutual labels:  js-library, javascript-library
Anychart
AnyChart is a lightweight and robust JavaScript charting solution with great API and documentation. The chart types and unique features are numerous, the library works easily with any development stack.
Stars: ✭ 288 (+1100%)
Mutual labels:  js-library, javascript-library
Spotlight
Web's most easy to integrate lightbox gallery library. Super-lightweight, outstanding performance, no dependencies.
Stars: ✭ 799 (+3229.17%)
Mutual labels:  javascript-library, image-viewer
Darken
🌑 Dark mode made easy
Stars: ✭ 571 (+2279.17%)
Mutual labels:  vanilla-javascript, javascript-library
FilterInputJs
Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...
Stars: ✭ 37 (+54.17%)
Mutual labels:  js-library, javascript-library
Redash
Tiny functional programming suite for JavaScript.
Stars: ✭ 40 (+66.67%)
Mutual labels:  js-library, javascript-library
ChangeNumbersJs
Tiny Library for change number from a language in other language.
Stars: ✭ 14 (-41.67%)
Mutual labels:  js-library, javascript-library
Josh.js
A JavaScript library to animate content on page scroll.
Stars: ✭ 345 (+1337.5%)
Mutual labels:  vanilla-javascript, javascript-library
lexicon-mono-seq
DOM Text Based Multiple Sequence Alignment Library
Stars: ✭ 15 (-37.5%)
Mutual labels:  vanilla-javascript, javascript-library
Psd Guides
📐 JS library to draw photoshop-like guides.
Stars: ✭ 22 (-8.33%)
Mutual labels:  js-library, javascript-library
Bin
A tiny (<1kb) localStorage and sessionStorage helper library.
Stars: ✭ 70 (+191.67%)
Mutual labels:  vanilla-javascript, javascript-library
Semantic Ui React
The official Semantic-UI-React integration
Stars: ✭ 12,561 (+52237.5%)
Mutual labels:  js-library, javascript-library
Fine Uploader
Multiple file upload plugin with image previews, drag and drop, progress bars. S3 and Azure support, image scaling, form support, chunking, resume, pause, and tons of other features.
Stars: ✭ 8,158 (+33891.67%)
Mutual labels:  vanilla-javascript, javascript-library
FixLanguageTypeJs
Tiny Library for fix problem of language selection in type text.
Stars: ✭ 15 (-37.5%)
Mutual labels:  js-library, javascript-library
Volt Bootstrap 5 Dashboard
Free and open source Bootstrap 5 Admin Dashboard Template with vanilla Javascript
Stars: ✭ 2,252 (+9283.33%)
Mutual labels:  vanilla-javascript
Hnpwa Vanilla
Hacker News PWA implemented using no framework just javascript
Stars: ✭ 245 (+920.83%)
Mutual labels:  vanilla-javascript
Bs Custom File Input
A little plugin for Bootstrap 4 custom file input
Stars: ✭ 162 (+575%)
Mutual labels:  vanilla-javascript
Mailtoui
A simple way to enhance your mailto links with a convenient user interface.
Stars: ✭ 162 (+575%)
Mutual labels:  vanilla-javascript
js-plugin-starter-kit
VanillaJS (pure JavaScript) plugin starter with Webpack 4 and Babel 7.
Stars: ✭ 100 (+316.67%)
Mutual labels:  vanilla-javascript

previewer

Giphy

Demo 1

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.

<link rel="stylesheet" href="Path/To/previewer.css" />

<script src="Path/To/previewer.js" type="text/javascript"></script>

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

<img src="Path/To/Image" alt="" class="preview-image"/>

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

<ul class="preview-images">
  <li><img src="Path/To/Image1" alt="" /></li>
  <li><img src="Path/To/Image2" alt="" /></li>
  <li><img src="Path/To/Image3" alt="" /></li>
</ul>

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

<img src="Path/To/Thumbnail" data-previewer="Path/To/Image" >

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

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].