Full Documentation: https://www.einscms.com/modal
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.