12 lines
390 B
HTML
12 lines
390 B
HTML
<div id="modal" _="on closeModal add .closing then wait for animationend then remove me">
|
|
<div class="modal-underlay" _="on click trigger closeModal"></div>
|
|
<div class="modal-content">
|
|
<h1>Modal Dialog</h1>
|
|
This is the modal content.
|
|
You can put anything here, like text, or a form, or an image.
|
|
<br>
|
|
<br>
|
|
<button _="on click trigger closeModal">Close</button>
|
|
</div>
|
|
</div>
|