How To Implement Toast Notifications Using Plugin | jQuery Toast Notice

jQuery Toast Notice, minimal jQuery implementation of toast notification bars that are easy to design with CSS and that disappear automatically after a period of time.

Minimalistic and Responsive JavaScript Library for Show Toast Notifications | Notyf

How to make use of it:

1. Load the primary script after jQuery.

<script src="/path/to/cdn/jquery.slim.min.js"></script>
<script src="script/script.js"></script>

2. Create toast notifications and determine the timeout in milliseconds.

toast('Toast <a href="#!">Notification</a> 1', 3000);
toast('Toast Notification 2', 4000);
toast('Toast Notification 3', 5000);
...

3. Apply CSS styles to the toast notification bars.

.toast {
  position: relative;
  width: 100%;
  border-top: 1px solid #000;
  background-color: #222;
  color: #fff;
  font-size: 20px;
}

.toast__frame {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 100;
}

.toast__text {
  text-align: center;
  padding: 15px;
}

.toast__close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.close-button {
  display: inline-block;
  width: 20px;
  height: 20px;
  position: relative;
  background-color: #444;
  cursor: pointer;
  border-radius: 50%;
}

.close-button::before,
.close-button::after {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 10%;
  margin: -6% 0 0 -33%;
  background: #fff;
}

.close-button::before {
  transform: rotate(-45deg);
}

.close-button::after {
  transform: rotate(45deg);
}

Stackable Toast-style Notification, jquery toast notice Plugin/Github


See Demo And Download

Official Website(it-web-life): Click Here

This superior jQuery/javascript plugin is developed by it-web-life. For extra Advanced Usages, please go to the official website.

Related Posts

Searchable-Select-Dropdown

A Simple Searchable Select Dropdown Plugin | jQuery Select Search

Simple jQuery search on the selection options plugin for your website. Next, there is a checkbox replacement plugin that refines and beautifies the original selection element with…

country-dropdown-with-flags

A Quick jQuery-Based Country Picker With Flags | Country Select JS

Country Select JS is a jQuery plugin to select a country, based on the international phone input plugin. Adds a flag dropdown to any input, which lists…

Autocomplete-and-Typeahead-Javascript-Library

Simple and Fast Autocomplete and Typeahead Javascript Library | autoComplete.js

autoComplete.js is a simple, pure, and incrementally designed JavaScript library for speed, high versatility, and seamless integration with a wide variety of projects and systems. Features Pure…

Bootstrap-Notification-Message-Alert-Plugin

Bootstrap Notification Message Alert Plugin with jQuery

BootstrapMsg is a jQuery plugin for displaying messages with Bootstrap alert classes to generate hierarchical in-page navigation for an extended webpage sectioned by heading components. Using Bootstrap…

jquery-google-chart-plugin

jQuery Plugin for Transforming HTML Tables Into Charts Using Google Charts

Chartinator is a jQuery plugin for converting HTML tables, Google Sheets and js arrays into charts using Google Charts. Use data from HTML tables Chartinator is designed…

free-vue-chart-library

Customizable & Composable Charts for VueJS | vue-wcharts

WCharts is a library that makes it easy to create your own charts using Vuejs. You can easily create reusable chart components. Use a basic layout or…