This package has been deprecated

Author message:

WARNING: This project has been renamed to modal-js. Install using modal-js instead.

modal-module

1.3.1 • Public • Published

Modal

Create simple or advanced, high performant Modals with minimal javascript and markup. This library is built using native vanilla javascript. Which means super fast performance. Supports IE10+, all major browsers and even mobile.

Usage

Create one or more modals with a few lines of javascript. With your html and css setup correctly, you can do:

var modal = new Modal({
    el: $('<div class="my-modal">My Modal Content</div>')[0],
    containerEl: $('modals-container')[0],
    activeClass: 'modal-active'
});
 
modal.setup(); // inject the modal's html into the modal container
modal.show(); // show the modal
modal.hide(); // hide the modal

More details and example can be found here.

Readme

Keywords

none

Package Sidebar

Install

npm i modal-module

Weekly Downloads

6

Version

1.3.1

License

none

Last publish

Collaborators

  • test