Basic Example
To replicate this example, follow these steps:
- Include:
popup.js (< 700 bytes minified & gzipped)
- Include:
popup.css (< 300 bytes minified & gzipped)
- Add the following HTML for your popup:
<div class="popup className"> <div class="content"> [your popup's HTML here] </div> <button class="close">×</button> </div>
- Register the popup by calling the register function:
window.popup.register("className")
- Add custom CSS for your popup. This library provides almost no default styling. It does handle the popup animation as well as the tinted overlay. The rest is up to you!
- See the "Usage & Options" section below for all available options.