Android-Like Toast Notification Popup Plugin With jQuery

File Size: 10.1 KB
Views Total: 2316
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Android-Like Toast Notification Popup Plugin With jQuery

Just another jQuery toast notification plugin used to a toast notification like popup with a custom message which will be closed after a fixed time.

How to use it:

1. Add jQuery library and the Toastme jQuery plugin's files to the webpage.

<link href="/path/to/dist/css/toastme.css" rel="stylesheet" />
<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/dist/js/toastme.js"></script>

2. Create a container to hold the toast message.

<div id="myToast" class="toast-popup"></div>

3. Call the plugin to display a custom message in the toast popup.

$("#myToast").showToast({
  message: 'This is a toast notification!'
});

4. Determine the time to wait before auto-dismissing the toast message. Default: 1500ms.

$("#myToast").showToast({
  message: 'This is a toast notification!',
  duration: 3000
});

5. Determine the notification type you'd like to use:

  • info (Default)
  • succss
  • warning
  • error
$("#myToast").showToast({
  message: 'This is a toast notification!',
  mode: 'info'
});

Changelog:

2020-06-19

  • Added sticky, hover, and dismiss

2016-05-11


This awesome jQuery plugin is developed by npnm. For more Advanced Usages, please check the demo page or visit the official website.