Skip to content

Files

Latest commit

 

History

History
22 lines (12 loc) · 571 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 571 Bytes

Lightweight vanilla js modal component (just 2kb)

pure javascript Modal , This is just 2kb Lightweight vanilla js modal component with zero dependencies , with option esc close , outside click close , custom height , widht

check demo here : https://idurar.github.io/vanilla-js-modal/

### javascript code to open Modal 

modal.open('idContent'); // to open Modal with wanted html content

// modal.close(); // to close Modal

### HTML code to insert in Modal 

<div id="idContent" style="display:none">
 <!--your Modal html content here -->
</div>