0.1.20 • Published 5 years ago

vanilla-notify v0.1.20

Weekly downloads
238
License
MIT
Repository
github
Last release
5 years ago

Vanilla Notify

Notification Library built using Vanilla Javascript. No jQuery or other dependencies.

This library was built with customization in mind. While there are global options, each notification can override the global options.

Demo

http://mlaritz.github.io/Vanilla-Notify/

Installation

The JS and CSS files are required:

<link rel="stylesheet" href="dist/vanilla-notify.css" />

<script src="dist/vNotify.js"></script>

Examples

//Info Notification
vNotify.info({text: 'text', title:'title'});

//Success Notification
vNotify.success({text: 'text', title:'title'});

//Warning Notification
vNotify.warning({text: 'text', title:'title'});

//Error Notification
vNotify.error({text: 'text', title:'title'});

//Notify Notification
vNotify.notify({text: 'text', title:'title'});

Global Options

vNotify.options = {
  fadeInDuration: 2000,
  fadeOutDuration: 2000,
  fadeInterval: 50,
  visibleDuration: 5000,
  postHoverVisibleDuration: 500,
  position: positionOption.topRight,
  sticky: false,
  showClose: true 
};

Notification Options

Each individual notification can override the global options.

If you want to make an error notification sticky with the close icon:

vNotify.error({text: 'text', title:'title', sticky: true, showClose: true});

Dist Folder

The dist folder contains:

  • JS File (vNotify.js) to use for debugging purposes
  • Minified JS File (vNotify.min.js) to use for your site
  • CSS file to link to directly in your HTML
  • SCSS Partial file for you to use with your other SASS stylesheets
  • LESS file for you to use with your other LESS stylesheets
1.0.0-beta.10

5 years ago

1.0.0-beta.9

5 years ago

1.0.0-beta.8

5 years ago

1.0.0-beta.7

5 years ago

1.0.0-beta.6

5 years ago

1.0.0-beta.5

5 years ago

1.0.0-beta.4

5 years ago

1.0.0-beta.3

5 years ago

1.0.0-beta.2

5 years ago

1.0.0-beta.1

5 years ago

1.0.0-beta.0

5 years ago

0.1.20

7 years ago

0.1.19

7 years ago

0.1.18

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago