Tsu.js
Just a notification in Vanilla
Install
npm i -S tsu.js
Usage
in CommonJS
const Tsu = require('tsu.js');
in ES6
import Tsu from 'tsu.js';
in Browsers
<script src="tsu.js"></script>
Example
success danger
Options
Global
Tus.config.width
Element width. By default15em
Tsu.config.duration
Sec until to fadeIn/Out. By default.2s
Tsu.config.timeout
Sec until element is hidden. By default2s
Disabled by setting thenull
Tsu.config.clickEvent
...Tsu.config.position
left
,center
,right
Tsu.config.maxSize
Max notification length. By default3
Instance
color
Background color. By default#fff
label
Whatever to display the.tsu__label
. By defaulttrue