Dead Simple jQuery Notification Plugin - notificator.js

File Size: 5.4 KB
Views Total: 383
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Dead Simple jQuery Notification Plugin - notificator.js

notificator.js is an extremely lightweight (~1kb) jQuery plugin to display informational messages on the top right of the webpage.

How to use it:

1. Add jQuery library and the jQuery notificator.js script to the web page.

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="jquery.notificator.js"></script>

2. Create a notification message that will auto fades out after 1.5 seconds.

$.notificator("message");

3. Apply your own CSS styles to the notification messages.

#notificator {
  position: absolute;
  top: 10px;
  right: 20px;
  overflow: hidden;
}

#notificator .msg {
  color: #fff;
  font-weight: bold;
  width: 300px;
  min-height: 30px;
  padding: 10px;
  font-size: 15px;
  margin-bottom: 10px;
  background: #E74C3C;
  border: 4px solid #C0392B;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}

This awesome jQuery plugin is developed by negativo. For more Advanced Usages, please check the demo page or visit the official website.