Simple to use modal / alert / dialog / popup. Created with pure JS. No javascript knowledge required! Works on every browser and device! IE9
EinsModal is the best solution to interact with your users.
It works on every browser and device! (Internet Explorer >= 9)
βEinsβ is german and means βoneβ.
This software is part of the Eins-Software-Family.
Every Eins-Software-Product aims to be the one and only software solution you will ever need regarding its task.
There are many other modal / dialog / popup libraries out there and we tried some of them.
So what is the need and purpose of this library?
We needed a solution that is production ready, easy to use, extensible and has beautiful design and animation.
Animations and Design
EinsModal has 50 animations / transitions and a Dark & Light theme build in.
Most of the Libraries out there lack good looking design and/or have no or poor animations.
Browser Support
EinsModal is responsive (all device sizes) and works on all browsers (>= IE9)!
Almost all other libraries lack support for legacy browsers like IE9 and they also have bugs in newer browsers.
Production Ready
EinsModal is production ready and stable.
We sometimes need a Modal to display or provide critical information and functionality to our users. So it has to work 100% of the time. Bugs are not acceptable.
Easy to use
EinsModal can be used without any javascript knowledge.
Most of the other libraries can only be used and configured by writing your own javascript code.
Extensibility
EinsModal provides a developer-friendly api that allows you to extend and use the libraries in many different ways.
It also has just a small amount of CSS / SCSS. Overriding or extending it is very easy!
π No Javascript knowledge required
You just need to know how to copy and paste HTML!
β‘ Created with pure Javascript
Just javascript, no framework used!
π» Lightweight
eins-modal
is 26 KB (gzipped)
eins-modal-plain
is 8 KB (gzipped)
βοΈ Well documented
The documentation also has a Modal-Generator π
πͺ Actively Maintained
The software is always up to date!
π Works with all mobile and desktop Browsers
Internet Explorer >= 9
π° Easy to use and robust
Eating a cake is more difficult than using EinsModal π
π Can display every kind of HTML
Yes, it can!
π₯ Easy to Customize & Extend
EinsModal has just a small amount of CSS. Means overriding it or extending it is very easy!
You can also use the SCSS file if you want to.
EinsModal provides everything you need to interact with it via JS. There are no limits regarding extending and using it!
π Dark theme build in
Dark theme is already build in. Modifying it or adding new themes is very easy!
npm install eins-modal
// scss
import 'eins-modal/src/scss/style.scss'
// OR css
import 'eins-modal/dist/css/eins-modal.min.css'
// javascript
import EinsModal from 'eins-modal';
// OR
import 'eins-modal';
<head>
<!-- In Head Tag -->
<link rel="stylesheet" href="/path/to/dist/css/eins-modal.min.css">
</head>
<body>
<!-- End Of Body Tag -->
<script src="/path/to/dist/js/eins-modal.min.js"></script>
</body>
If you want a smaller file size and just need a modal you can use EinsModal without any animations.
npm install eins-modal
// scss
import 'eins-modal/src/scss/style.scss'
// OR css
import 'eins-modal/dist/css/eins-modal.min.css'
// javascript
import EinsModal from 'eins-modal/src/eins-modal-plain';
// OR
import 'eins-modal/src/eins-modal-plain';
<head>
<!-- In Head Tag -->
<link rel="stylesheet" href="/path/to/dist/css/eins-modal.min.css">
</head>
<body>
<!-- End Of Body Tag -->
<script src="/path/to/dist/js/eins-modal-plain.min.js"></script>
</body>
EinsModal provides type definitions. They are especially helpful when using Typescript.
Just install the following package to get the type definitions:
npm install --save-dev @types/eins-modal
This project is open source and available under the MIT License.