jQuery Toast Notice, minimal jQuery implementation of toast notification bars that are easy to design with CSS and that disappear automatically after a period of time.
Minimalistic and Responsive JavaScript Library for Show Toast Notifications | Notyf
How to make use of it:
1. Load the primary script after jQuery.
<script src="/path/to/cdn/jquery.slim.min.js"></script> <script src="script/script.js"></script>
2. Create toast notifications and determine the timeout in milliseconds.
toast('Toast <a href="#!">Notification</a> 1', 3000); toast('Toast Notification 2', 4000); toast('Toast Notification 3', 5000); ...
3. Apply CSS styles to the toast notification bars.
.toast { position: relative; width: 100%; border-top: 1px solid #000; background-color: #222; color: #fff; font-size: 20px; } .toast__frame { position: fixed; bottom: 0; right: 0; left: 0; z-index: 100; } .toast__text { text-align: center; padding: 15px; } .toast__close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); } .close-button { display: inline-block; width: 20px; height: 20px; position: relative; background-color: #444; cursor: pointer; border-radius: 50%; } .close-button::before, .close-button::after { display: block; content: ""; position: absolute; top: 50%; left: 50%; width: 70%; height: 10%; margin: -6% 0 0 -33%; background: #fff; } .close-button::before { transform: rotate(-45deg); } .close-button::after { transform: rotate(45deg); }
Stackable Toast-style Notification, jquery toast notice Plugin/Github
See Demo And Download
Official Website(it-web-life): Click Here
This superior jQuery/javascript plugin is developed by it-web-life. For extra Advanced Usages, please go to the official website.