Skip to content

gulshancodes/open-clicked-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Open-Clicked-Modal

Open the currently clicked Modal using Vanilla JavaScript


Features:

  • Only opens the currently clicked Modal
  • 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: