The last modal / alert / dialog you will ever need!
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.
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.
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 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!
You just need to know how to copy and paste HTML!
eins-modalis 26 KB (gzipped)
eins-modal-plainis 8 KB (gzipped)
The documentation also has a Modal-Generator
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
<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>
EinsModal without animations (eins-modal-plain)
If you want a smaller file size and just need a modal you can use EinsModal without any animations.
npm install 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-plain.min.js"></script> </body>
Type definitions / Typescript
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.