A Simple and Lightweight Shows Toast Notifications Plugin | ToastmeJS

ToastmeJS is a very simple, flexible, and lightweight plugin that displays notifications and media dialogs on your website.

javascript toast notification, toast overlay, javascript toast library, toastify js, css toast, toast message jquery, vanilla js toast

Features:

  • Casual and light themes.
  • custom icons.
  • position variables.
  • Custom lead time.
  • Success/Error/Warning/Information types.

How to make use of it:

Install & import.

# NPM
$ npm install toastjs --save
import toastme from 'toastjs'

Or straight load the next JS & CSS files within the doc.

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

Create a brand new toastme instance.

const myToast = new Toastme();

Create the toast notification.

myToast.default("This is a 'default' notification")
myToast.success("This is a 'success' notification")
myToast.error("This is an 'error' notification")
myToast.warning("This is a 'warning' notification")
myToast.info("This is an 'info' notification")

Config the toast notification by overriding the default parameters as follows:

const myToast = new Toastme({
      timeout: 5000,
      distanceX: 15,
      distanceY: 15,
      positionY: "bottom", // or 'top'
      positionX:" right", // or 'left', 'center'
      zIndex: 100,
      ligh: false // light theme?
});

Customizable!

You can customize duration, position, distance, z-overlapping and a theme

  1. timeout: miliseconds
  2. positionY: ‘top’ or ‘bottom’
  3. positionX: ‘left’, ‘right’ or ‘center’ position
  4. distanceY: distance from the Y axis
  5. distanceX: distance from the X axis
  6. zIndex: overlapping order
  7. theme: default, ligh or dark (leave empty for “default” theme)
  8. duplicates: set this ‘true’ or ‘false’ – by default it’s false
Simple Flexible Toast Notification, ToastmeJS Plugin/Github

See Demo And Download

Official Website(AlexSegen): Click Here

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

Related Posts

Vector-Graphs-smartGraph

Generating Beautiful Vector Graphs With jQuery | smartGraph

SmartGraph is a free and easy-to-use JavaScript library to create beautiful vector diagrams with many customizations. This plugin allows developers to create dynamic, responsive, draggable vector graphics…

vue-image-slider-transition

Image Slider With 20 Cool Transitions Component | vue-flux

Vue flux is an image slider developed with Vuejs 2 that comes with 20+ nice transitions out of the box. Included transitions 2D transitions Fade: Fades from…

simple-parallax-scrolling

Simple background Image Parallax Scroll Plugin In jQuery

Background parallax effect is a simple jQuery background image without any library. Uses jQuery’s scroll() function to track the scroll event and applies the exact parallax scroll…

bootstrap-color-picker-plugin

Modular Color Picker Plugin for Bootstrap | BS Colorpicker

Bootstrap Colorpicker is a standard color picker plugin for Bootstrap 4. Colorpicker Plugin for Bootstrap 5/4/3 frameworks that allow you to add a color picker to an…

gdpr-iframe-manager-js

GDPR Friendly iFrame Manager In Vanilla JS | iframemanager

IframeMananger is a lightweight JavaScript plug-in that helps you to comply with GDPR by completely removing iframes at first and setting a notice related to that service….

diagonal-slider-anime-js

Diagonal Thumbnails Carousel Slider | Anime.js

Diagonal Slider is a cool mini carousel made with Anime.js JavaScript library. It takes a bunch of pictures and turns them into a circular user interface where…