Accessible modal dialogs built in pure HTML, CSS and vanilla JS. Dialog, lightbox, video, confirmation and form modals — all included.
Get 180+ Templates — $35Delete confirmation, action approval and alert modals with customizable buttons and icon support.
Gallery lightbox with keyboard navigation, swipe support, and image captions. Opens any img element on click.
YouTube or Vimeo embed that opens in a centered modal. Pauses video automatically on close.
Login, registration and contact forms in modal overlays. Validated with native HTML5 constraint API.
Tab key cycles only through focusable elements inside the open modal. Users can't accidentally interact with background content.
Press Escape to dismiss any modal. Standard browser behavior users expect — don't make them hunt for a close button.
role="dialog", aria-modal="true", aria-labelledby and aria-describedby are set automatically on open.
Clicking the semi-transparent overlay closes the modal. A UX pattern users understand intuitively.
Body scroll is locked while the modal is open, preventing confusing background scroll on mobile.
| Approach | Vanilla JS (UIXDraft) | Bootstrap Modal | SweetAlert2 |
|---|---|---|---|
| Bundle size | ~1.5 KB | ~45 KB Bootstrap | ~36 KB |
| Dependencies | Zero | Bootstrap + Popper | SweetAlert2 |
| Accessibility | Full ARIA + focus trap | Good | Good |
| Custom styling | Edit CSS variables | Override Bootstrap classes | Limited theming |
Commercial licence · No subscription · Instant download · Lifetime updates
Download All 180+ Templates — $35