All Projects → nzbin → Photoviewer

nzbin / Photoviewer

Licence: mit
🌀 A JS plugin to view images just like in Windows.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Photoviewer

Magnify
🖼 A jQuery plugin to view images just like in Windows. Browser support IE7+!
Stars: ✭ 177 (-12.81%)
Mutual labels:  modal, draggable, lightbox, image-gallery, resizable, responsive
Jbox
jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more.
Stars: ✭ 1,251 (+516.26%)
Mutual labels:  modal, lightbox, image-gallery
Vue Responsive Dash
Responsive, Draggable & Resizable Dashboard (Grid) for Vue
Stars: ✭ 128 (-36.95%)
Mutual labels:  draggable, resizable, responsive
Lity
Lightweight, accessible and responsive lightbox.
Stars: ✭ 1,051 (+417.73%)
Mutual labels:  modal, lightbox, responsive
Angular Grid Layout
Responsive grid with draggable and resizable items for Angular applications.
Stars: ✭ 163 (-19.7%)
Mutual labels:  draggable, resizable, responsive
Jspanel4
A JavaScript library to create highly configurable floating panels, modals, tooltips, hints/notifiers/alerts or contextmenus for use in backend solutions and other web applications.
Stars: ✭ 217 (+6.9%)
Mutual labels:  modal, draggable, resizable
Baguettebox.js
⚡ Simple and easy to use lightbox script written in pure JavaScript
Stars: ✭ 2,252 (+1009.36%)
Mutual labels:  modal, lightbox, responsive
fancybox
jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
Stars: ✭ 7,261 (+3476.85%)
Mutual labels:  responsive, modal, lightbox
react-gallery-carousel
Mobile-friendly gallery carousel 🎠 with server side rendering, lazy loading, fullscreen, thumbnails, touch, mouse emulation, RTL, keyboard navigation and customisations.
Stars: ✭ 178 (-12.32%)
Mutual labels:  responsive, modal, lightbox
jsPanel3
A jQuery Plugin to create highly configurable floating panels, modals, tooltips, hints/notifiers or contextmenus for use in a backend solution and other web applications.
Stars: ✭ 89 (-56.16%)
Mutual labels:  modal, draggable, resizable
Natural Gallery Js
A lazy load, infinite scroll and natural layout list gallery
Stars: ✭ 93 (-54.19%)
Mutual labels:  lightbox, responsive
React Modal Image
A tiny React component providing modal image Lightbox.
Stars: ✭ 97 (-52.22%)
Mutual labels:  modal, lightbox
Bootstrap4 Fs Modal
A simple way to improve UX of Bootstrap 4 modals on mobile phones.
Stars: ✭ 102 (-49.75%)
Mutual labels:  modal, responsive
Vue Draggablecal
Not your ordinary datepicker. A Vuejs draggable date selector with a fresh responsive design, mobile ready and 0 dependencies, 17kb gzipped
Stars: ✭ 79 (-61.08%)
Mutual labels:  draggable, responsive
React Poppop
A mobile support and multi-directional modal for ReactJS
Stars: ✭ 78 (-61.58%)
Mutual labels:  modal, responsive
Chocolat
Chocolat : the lightbox so cool horses use it 🐴
Stars: ✭ 1,630 (+702.96%)
Mutual labels:  lightbox, responsive
Ant Design Draggable Modal
The Modal from Ant Design, draggable.
Stars: ✭ 105 (-48.28%)
Mutual labels:  modal, draggable
React Drag Drawer
A responsive mobile drawer that is draggable on mobile, and falls back to a modal on desktop
Stars: ✭ 135 (-33.5%)
Mutual labels:  modal, draggable
Lightbox
A lightbox gallery plugin for Bootstrap
Stars: ✭ 1,866 (+819.21%)
Mutual labels:  modal, lightbox
Vue3 Draggable Resizable
[Vue3 组件] 用于拖拽调整位置和大小的的组件,同时支持冲突检测,元素吸附对齐,实时参考线。
Stars: ✭ 159 (-21.67%)
Mutual labels:  draggable, resizable

PhotoViewer

Travis npm license Gitter Financial Contributors on Open Collective

PhotoViewer is a JS plugin to view images just like in windows. [Examples]

If you want to support IE8, please goto Magnify.

Features

  • Vanilla JS
  • Modal draggable
  • Modal resizable
  • Modal maximizable
  • Image movable
  • Image zoomable
  • Image rotatable
  • Keyboard control
  • Fullscreen showing
  • Multiple instances
  • Browser support IE9+
  • RTL support

Installation

You can install the plugin via npm

$ npm install photoviewer --save

Quick Start

Step 1: Include files

@import 'photoviewer/dist/photoviewer.css';
import PhotoViewer from 'photoviewer';

or

<!-- Core CSS file -->
<link href="/path/to/photoviewer.css" rel="stylesheet">

<!-- Core JS file -->
<script src="/path/to/photoviewer.js"></script>

Step 2: Initializing

The usage of photoviewer is very simple, the PhotoViewer constructor has 2 argument.

  1. Array with objects of image info.
  2. Options
// build images array
var items = [
    {
        src: 'path/to/image1.jpg', // path to image
        title: 'Image Caption 1' // If you skip it, there will display the original image name(image1)
    },
    {
        src: 'path/to/image2.jpg',
        title: 'Image Caption 2'
    }
];

// define options (if needed)
var options = {
    // optionName: 'option value'
    // for example:
    index: 0 // this option means you will start at first image
};

// Initialize the plugin
var viewer = new PhotoViewer(items, options);

Step 3: Binding Event

At last, binding click event on a button element at initializing.

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

License

MIT License

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].