Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.08 KB

README.md

File metadata and controls

59 lines (41 loc) · 1.08 KB

Notice.js

A beautiful and modern, yet fully customizable notification library.

Download & Install

  • You can quickly install Notice.js via NPM:
npm install notice.js --save
bower install notice.js --save

Link styles

<link rel="stylesheet" href="dist/noticejs.css" />

Add scripts

<script src="dist/notice.js"></script>

Usage

Basic:

new NoticeJs({
    text: 'Notification message',
    position: 'topLeft',
}).show();

With animation:

Supports css animations, animate.css

new NoticeJs({
    text: 'Notification message',
    position: 'topLeft',
    animation: {
        open: 'animated bounceInRight',
        close: 'animated bounceOutLeft'
    }
}).show();