Growl Notification In Vanilla JavaScript – vToasts

Category: Javascript , Notification | May 24, 2018
Author: AdamModus
Views Total: 1,126
Official Page: Go to website
Last Update: May 24, 2018
License: MIT

Preview:

Growl Notification In Vanilla JavaScript – vToasts

Description:

vToasts is a minimal, easy-to-use JavaScript plugin to create growl-style notifications that slide in from the edge of the screen and slide out after a certain timeout.

How to use it:

Import the vToasts’ JavaScript and CSS files into the html file.

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

Create a new notification.

vToasts.toast({
  title: 'Notification Title',
  type: 'success',
  content: 'Notification Content'
});

All possible notification types.

  • success
  • info
  • warn
  • error

You Might Be Interested In:


Leave a Reply