Modals built out of pure CSS
Please visit the website to read more about this project.
Built with pure CSS: CSS Modal is built out of pure CSS. JavaScript is only for sugar. This makes them perfectly accessible.
Optimized for mobile: The modals are designed using responsive web design methods. They work on all screen sizes from a small mobile phone up to high resolution screens.
Use as Sass plugin: You can use CSS Modal as Sass plugin and apply it to your custom classes. No need to understand all the code.
A few other advantages: accessible, cross-browser, media-adaptive, small and fast!
Please visit the website's section on how to use the CSS Modal.
This modal is designed to work on all modern browsers. This does not include Internet Explorer 7 or lower.
Please be aware that you need to stop playing videos or audio manually after hiding the modal.
There is an event that is fired on the modal itself after the modal is show
which is called cssmodal:show
and an event after the modal is hidden called
cssmodal:hide
.
There events are not fired in IE8. Please be aware of that and use jQuery or something else to create custom events.
If you got something that's worth including into the project please open an issue for further discussion.
Please see the section on contributing on the website.
This is a project by Hans Christian Reinl. Thanks goes out to all other contributors.