Sliding Growl Notification Plugin For jQuery jsnotify - Download Sliding Growl Notification Plugin For jQuery - jsnotify

Download Sliding Growl Notification Plugin For jQuery – jsnotify

Posted on

This time I will share jQuery Plugin and tutorial about Sliding Growl Notification Plugin For jQuery – jsnotify, hope it will help you in programming stack.

Sliding Growl Notification Plugin For jQuery jsnotify - Download Sliding Growl Notification Plugin For jQuery - jsnotify
File Size: 70.3 KB
Views Total: 1369
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

jsnotify is a lightweight jQuery plugin which enables you to display sliding informative messages just like the Windows’ growl notifications. Easy to extend to create your own styles.

How to use it:

1. Put jQuery library and the jQuery jsnotify plugin’s JS & CSS files into the html document.

1 <link href="dist/css/notify.css" rel="stylesheet">
2 <script src="//code.jquery.com/jquery.min.js"></script>
3 <script src="dist/js/notify.js"></script>

2. The plugin requires Font Awesome for the notification icons.

1 <link rel="stylesheet" href="/path/to/font-awesome.min.css">

3. Create a new notify function and specify the title & message of the growl notification.

1 var options = {
2     'title': 'Notify Title',
3     'message': 'Hello World'
4 };
5  
6 var n = new notify(options);

4. Show the notification on the webpage.

1 n.show();

5. More configuration options.

01 var options = {
02  
03     // success, info, error
04     style: 'default',
05  
06     // notification title
07     title: '',
08  
09     // notification message
10     message: '',
11  
12     // custom Font Awesome icon
13     icon: '',
14  
15     // cutom theme
16     theme: null,
17  
18     // timeout to close the notification automatically
19     timeout: null,
20  
21     // shows close button
22     close_button: true
23 };

6. Add new themes to the notification as you seen in the themes/flat.css.


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

source : jqueryscript.net