Display Small Popup Messages Using Vanilla Javascript | minitoast

minitoast is a simple JS library for creating toast-like, mobile-friendly popup notifications on a web page.

javascript toast message example, simple toast message in javascript, toast notification jquery, jquery toast message example, toast message animation

How to make use of it:

1. Download or install minitoast library.

$ npm install minitoast --save

2. Import minitoast’s JavaScript and CSS files into the document.

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

3. Initialize the minitoast library.

let instance = new minitoast();

4. Create toast notifications with different styles.

instance.success('Success message');
instance.warning('Warning message');
instance.error('Error message');
instance.info('Info message');
instance.default('Default message');

5. Set the timeout in milliseconds.

notif: {
  timeout: 5000

6. Messages and default colors for popups.

msgs: {
  s: ['', 'Success', 'mt-success'],
  w: ['', 'Warning', 'mt-warning'],
  e: ['', 'Error', 'mt-error'],
  i: ['', 'Info', 'mt-info'],
  d: ['', 'Notification', 'mt-default']

mobile-friendly popup notification, minitoast Plugin/Github

See Demo And Download

Official Website(jacojvv-dev): Click Here

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

Related Posts


Star Rating Plugin Control Based On Radio Buttons

Star Rating Radio Buttons, the star rating plugin is a plugin for the jQuery Javascript library that creates a non-intrusive star rating control based on a set…


A Pure QRCode Encode and Decode JavaScript Library | Decoding/Encoding

QR Code With Pure JavaScript – A pure JavaScript QRCode encode and decode library. QR code encoder and decoder instruments help you shortly generate QR codes from…


Simple and Lightweight Vertical 3-Dot Context Menu

The 3-dot Context Menu allows for a simple and lightweight implementation to show 3 vertical dots allowing the user to click and show a menu. Below is…


Pure Toast Notification JavaScript Library | Toastify JS

Toast Notification JavaScript – Toastify JS is an easy, lightweight, vanilla JavaScript library used for sending stackable, non-blocking toast messages to end customers. Features Multiple stacked notifications…


Dialogs Based on Bootstrap 5 Modal Component | BS-DIALOGS

BS-DIALOGS is a small library for creating modal windows for notification and input using the Bootstrap 5 modal. It automatically handles DOM processing and provides callbacks to…


Creating Swipeable Image Carousel | Slider-cut

slider-cut is a modern, responsive, effective, and easy-to-use mobile circular component that enables you to rotate through images by mouse drag and touch gestures or by pressing…