Web notifications for better user experience

Today, i will show you my latest javascript library for web notifications. Notify.js is a lightweight library written in javascript. You can use this library without jQuery.

With this library you can improve user experience with minimalistic and simple notifications.

Basic usage


notify.create("Enter your text here");

The first parameter, and only requred is text for the notification. With other config parameters you can set position, skin and close event for notification.


config = {
    'position': 'top-right', //top-right|top-left|bottom-left|bottom-right
    'skin': 'default', //default|primary|success|danger|warning|info
    'click_to_exit': true //true|false
        };
notify.create("Enter your text here", config);

Example:

Create notification

The source code is at my github.

Hope this library will be useful to you! Happy coding!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s