Small Customizable Notification Plugin – notifit 2

Category: Javascript , Notification | October 17, 2018
Author:naoxink
Views Total:227 views
Official Page:Go to website
Last Update:October 17, 2018
License:MIT

Preview:

Small Customizable Notification Plugin – notifit 2

Description:

This is the upgraded and vanilla JavaScript version of the jQuery notify plugin that shows minimal, clean, customizable notifications to end users.

How to use it:

Insert the notifit 2 plugin’s files into the html file.

<link rel="stylesheet" href="notifIt.css">
<script src="notifIt.js"></script>

Create a default notification on the page.

var n = notif({
    'msg': 'Your Own Message Here'
})

Set the position of the notification. Available positions: ‘left’, ‘center’, ‘right’ (default), ‘bottom’.

var n = notif({
    'msg': 'Your Own Message Here',
    'position': 'center'
})

Change the default theme of the notification. Available themes: ‘default’, ‘success’, ‘error’, ‘warning’, ‘info’.

var n = notif({
    'msg': 'Your Own Message Here',
    'type': 'info'
})

Insert a close button into the notification.

var n = notif({
    'msg': 'Your Own Message Here',
    'clickable': true
})

Set the CSS z-index & opacity properties of the notification.

var n = notif({
    'msg': 'Your Own Message Here',
    'opacity': 1,
    'zindex': null
})

Execute a function after the notification is closed.

var n = notif({
    'msg': 'Your Own Message Here',
    'callback': null
})

You Might Be Interested In:


Leave a Reply