1.2.1 • Published 10 years ago

t-bag v1.2.1

Weekly downloads
10
License
ISC
Repository
github
Last release
10 years ago

T-Bag

Like a toast, but dangling from above..

Usage:

require it:

var tBag = require('t-bag');

Make a t box:

var box = new tBag.Box('things');

Show a bag:

box.bag('Some message' [, settings]);

You can optionally pass DOM as the first argument, and it will be inserted as a child of the box element.

Which will go away after 4 seconds by default.

Settings:

sticky

Whether to auto-remove the message after hideTime

hideTime

How long to wait to auto-hide the message

animationTime

How long to wait to remove the element from the DOM, after hiding. Useful if you want to animate the element's removal.

1.2.1

10 years ago

1.2.0

10 years ago

1.1.1

11 years ago

1.1.0

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago