oliverfarrell / es6-modal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!');
  }
});

About

License:MIT License


Languages

Language:JavaScript 90.6%Language:HTML 9.4%