jQuery Toast-style Notification Library | notice.js

Notice is a native JavaScript library for creating different types of toast notifications with configurable close buttons and intervals.

toast notification example, toast notification javascript, toast notification react native

How to make use of it:

1. Install and import the notification into your project.

# NPM
$ npm install @firstandthird/notice --save
import Notice form 'notice';

2. Create a basic toast notification.

Notice('Default Notification');

3. Override the default level (notification type).

Notice('Notification Message',{
  level: 'info' // 'default', 'info', 'success', 'warning', 'error'
});

4. Set the duration in milliseconds.

Notice('Notification Message',{
  level: 'info',
  timeout: 5000
});

5. Whether or not the close button will be shown on hover.

Notice('Notification Message',{
  level: 'info',
  showClose: true
});

6. Select the container to which the notification message should be appended.

Notice('Notification Message',{
  level: 'info',
  container: document.body
});

toast-style non-blocking notification, notice Plugin/Github


See Demo And Download

Official Website(firstandthird): Click Here

This superior jQuery/javascript plugin is developed by firstandthird. For extra advanced usage, please go to the official website.

Related Posts

Input-Values-Using-Mouse-Drag

Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…

simple-parallax-scrolling-js

Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…

Convert-Form-Data-to-JSON

How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…

editable-html-table-using-javascript

A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

jquery.youtube-background

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…