JavaScript Only Toast Notification Library – ToastMessages

Category: Javascript , Notification | February 5, 2018
Author: ckckchoudhary
Views Total: 696
Official Page: Go to website
Last Update: February 5, 2018
License: MIT

Preview:

JavaScript Only Toast Notification Library – ToastMessages

Description:

Just another pure JavaScript based toast-style notification system according to the Google Material Design Snackbars & Toasts  spec.

How to use it:

Just download & include the ToastMessages plugin on the web page and you’re ready to go.

<script src="toastMessage.js"></script>

The JavaScript syntax.

  • message: toast message to display
  • time: auto dismiss after this timeout
  • outerStyles & innerStyles: add your own CSS styles here
// toastNow(message, time, outerStyles, innerStyles)
toastNow({
  message: 'Toast message here', 
  time: 5000, 
  outerStyles:{
    background:'#34495E'
  }, 
  innerStyles:{
    color:'#fafafa'
  }
})

You Might Be Interested In:


Leave a Reply