项目作者: zakangelle

项目描述 :
Make the Mortal Kombat toasty guy pop out on your site.
高级语言: JavaScript
项目地址: git://github.com/zakangelle/toasty.git
创建时间: 2013-02-12T06:42:13Z
项目社区:https://github.com/zakangelle/toasty

开源协议:

下载


toasty

Make the Mortal Kombat toasty guy pop out on your site.

Circle CI Coverage Status See Demo



Installation

  1. $ npm install toasty

Usage

Show toasty guy when a certain element is clicked:

JS:

  1. import toasty from 'toasty';
  2. toasty('.toasty');

HTML:

  1. <button class="toasty">Click me!</button>

or just trigger it directly:

  1. import toasty from 'toasty';
  2. let t = toasty();
  3. t.trigger();

Example

Generate an example in example/dist:

  1. $ npm run example

Standalone

Generate a standalone build in dist (for use with <script> tags and AMD module loaders):

  1. $ npm run build:standalone

Test

Run tests with karma and mocha:

  1. $ npm test

License

MIT