Vanilla-Modal CSS-driven JavaScript Modal/Popup Window Library

Vanilla-Modal CSS-driven JavaScript Modal/Popup Window Library

<div class="modal">
  <div class="modal-inner">
    <a data-modal-close>Close</a>
    <div class="modal-content"></div>
  </div>
</div>
<div id="modal-1" class="modal-hider">Modal 1 content</div>
<div id="modal-2" class="modal-hider">Modal 2 content</div>

Leave a Comment