/modal

Fully Responsive Modal using Vanilla JavaScript.

Primary LanguageCSS

Modal

Fully Responsive Modal using Vanilla JavaScript.

A Modal (also called as dialog-box or popup-window) is a web page element that displays in front of or on top of the current page and deactivates all other page content.

Features:

  • Fully Responsive
  • Completely built with HTML, CSS and JavaScript
  • No additional libraries or frameworks
  • Removes the body-scroll, so that modal content scrolls instead.
  • Clicking on the modal "backdrop" will automatically close the modal.
  • Pressing the "Escape" key will also close the modal.

Author: