CSS3 Animated Alert Notifications – JSAlert

Category: Javascript , Notification | August 10, 2017
Author: baraaabdelsalam
Views Total: 362
Official Page: Go to website
Last Update: August 10, 2017
License: MIT

Preview:

CSS3 Animated Alert Notifications – JSAlert

Description:

JSAlert is a vanilla JavaScript library to help create customizable alert notifications with CSS3 animations powered by Animate.css.

How to use it:

Load the JSAlert’s main JavaScript and Stylesheet in your document.

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

Create an element to place the notification alerts.

<div id="alertBtns">
  
</div>

Create a toggle button to display the notification alerts. All the configuration options can be passed via HTML data attributes.

<button 
  data-animate-start="bounceInRight" 
  data-animate-end="bounceOutRight"
  data-text-color="white"
  data-bg-color="#00bcd4"
  data-placement="right"
  data-content="Top Right Alert"
  onclick="makeAlert(this)" 
  class="wf-alert-btn">
  Click Me
</button>