A minimal yet flexible Modal Box:
- Written in ES5. (so you dont need to install any extra toolchain!).
- Zero dependency.
- RTL support.
- Support for translations.
- Predefined buttons.
- Custom HTML (eg, showing an image, slider, video player,...)
- 1k gzipped.
Download this repo as a zip file, and include these files to your page:
<!-- include modal css -->
<link rel="stylesheet" href="style.css" type="text/css"/>
<!-- include modal js -->
<script type="text/javascript" src="modal.js" ></script>
See samples.html
for more information.