reusable-modal-windows

1.0.0 • Public • Published

Reusable Modal Window

Use this module to save up some time on creating fuctionality for Modal Windows, or anything that needs to be clicked & toggled.

Basic Usage

<button openModal="some-modal-window">Open Modal!</button>

<div class="popup" modalName="some-modal-window">
    <p>Content...</p>
    <button closeModal="some-modal-window">Close!</button>
</div>

<script src="reusable-modal-window/index.js"></script>
new Modal('your-classname-for-visibility-of-modal-window'); // e.g. popup--visible. js-is-visible is set by default

Readme

Keywords

Package Sidebar

Install

npm i reusable-modal-windows

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4.1 kB

Total Files

5

Last publish

Collaborators

  • berezovskycom