Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 498 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 498 Bytes

Modals

Simple modals / popups / lightboxes.

Download

Getting Started

Using NPM

Getting started couldn't be easier. If you're using something like webpack, or browserify you can use the package like so.

const Modal = require('super-simple-modals');

new Modal({
  selector: '.modal',
  onShow: function () {
    console.log('showing!');
  },
  onHide: function () {
    console.log('hiding!');
  }
});