reusable-modal-windows
v1.0.0
Published
Use this module to save up some time on creating fuctionality for Modal Windows, or anything that needs to be clicked & toggled.
Downloads
2
Readme
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