Android-Like Toast Notification Popup Plugin With jQuery

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

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 Toast Notification Popup jQuery plugin's script to the webpage.

<script src="//code.jquery.com/jquery-1.12.2.min.js"></script>
<script src="js/toast-notification-popup.js"></script>

2. The Toast popup html tag.

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

3. Shows a custom message in the toast popup.

$("#myToast").showToast({
  message: 'This is a toast notification!',
  timeout: 1500 // in ms
});

4. Style and position the toast message.

.toast-popup {
  background-color: rgba(0, 0, 0, 0.80);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: none;
  padding: 6px 12px;
  border-radius: 2px;
  box-shadow: 2px 2px 10px #555;
  position: fixed;
  top: 25%;
  z-index: 500000;
}
 @media screen and (min-width:768px) {

.toast-popup {
  top: 35%;
  font-size: 13px;
}
}

Change log:

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.