Author: | botyk |
---|---|
Views Total: | 5,822 views |
Official Page: | Go to website |
Last Update: | September 7, 2018 |
License: | MIT |
Preview:

Description:
Alerts-JS is a minimal notification solution for the web that makes it easier to create different styles of notification alerts using CSS/CSS3.
JavaScript is only used to close the notifications with a fade-out animation.
How to use it:
Import the necessary JavaScript and CSS files into the html document.
<link href="css/my.css" rel="stylesheet"> <script src="js/my.js"></script>
The html to create alert notifications.
<div class="alert"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Default</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-red"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Red</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-pink"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Pink</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-purple"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Purple</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-indigo"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Indigo</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-blue"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Blue</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-cyan"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Cyan</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-teal"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Teal</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-green"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Green</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-orange"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Orange</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-brown"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Brown</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div> <div class="alert alert-bgray"> <span class="alert-close" data-close="alert" title="Close">×</span> <strong>Blue gray</strong> - lorem Ipsum is simply dummy of the printing and typesetting industry. </div>