Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idurar/vanilla-js-modal
Lightweight vanilla js modal
https://github.com/idurar/vanilla-js-modal
javascript js lightweight modal vanilla vanilla-js-modal vanillajs
Last synced: 3 months ago
JSON representation
Lightweight vanilla js modal
- Host: GitHub
- URL: https://github.com/idurar/vanilla-js-modal
- Owner: idurar
- License: mit
- Created: 2020-09-22T13:27:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-21T17:51:52.000Z (over 3 years ago)
- Last Synced: 2024-10-12T13:14:29.456Z (4 months ago)
- Topics: javascript, js, lightweight, modal, vanilla, vanilla-js-modal, vanillajs
- Language: JavaScript
- Homepage: https://idurar.github.io/vanilla-js-modal/
- Size: 27.3 KB
- Stars: 22
- Watchers: 4
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lightweight vanilla js modal component (just 2kb)
pure javascript Modal , This is just 2kb Lightweight vanilla js modal component with zero dependencies , with option esc close , outside click close , custom height , widht
check demo here : https://idurar.github.io/vanilla-js-modal/
```markdown
### javascript code to open Modal
modal.open('idContent'); // to open Modal with wanted html content
// modal.close(); // to close Modal
### HTML code to insert in Modal
```