modal-gallery
v1.0.4
Published
A lightweight JavaScript library for quick, gallery-style modals.
Downloads
10
Readme
Modal Gallery
:fireworks: A lightweight JavaScript library for quick, gallery-style modals.
TODO: implement draggable, more ev handler opts, smooth transition out, package css
Installation
npm install modal-gallery
Usage
ES6
import ModalGallery from 'modal-gallery'
let gallery = new ModalGallery().attach()
Node/Browserify/webpack
var mg = require('modal-gallery')
...
var gallery = mg()
gallery.attach()
Browser
<script src="modalgallery.min.js" type="text/javascript"></script>
...
var mg = ModalGallery()
mg.attach()