Create Notifications Easily With Javascript Plugin | spop.js

SmallPop is a small and lightweight popup tool with no dependencies, create notifications easily with this javascript plugin.

javascript prompt library, notification js example, alert library, jquery notification popup, javascript toast library, modal js library

Features:

  • 4 built-in styles: default, success, warning, and error.
  • Auto dismisses after a timeout just like the Android toaster.
  • 6 positions:┬átop-left, top-center, top-right, bottom-left, bottom-center, bottom-right.
  • Grouped notifications.
  • Open and close callback functions.
  • Supports HTML content.

How to make use of it:

1. Import spop files to HTML files.

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

2. Create notification popups as follows:

spop('<strong>Warning pop</strong>');
spop('<strong>Success pop</strong>', 'success');
spop('<strong>Warning pop</strong>', 'warning');
spop('<strong>Error popup</strong>', 'error');

3. Customize notification popups using the following options.

spop({
  // template string
  template  : null,
  // or success, warning or error
  style     : 'info',
  // auto close after the timeout
  autoclose : false,
  // or top-left top-center bottom-left bottom-center bottom-right
  position  : 'top-right',
  // shows icons
  icon      : true,
  // string, add a id reference
  group     : false,
  // callbacks
  onOpen    : funtion() { },
  onClose   : funtion() { }
  
});

elegant notification popup library, SmallPop Plugin/Github


See Demo And Download

Official Website(silvio-r): Click Here

This superior jQuery/javascript plugin is developed by silvio-r. 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…