Make the Mortal Kombat toasty guy pop out on your site.
$ npm install toasty
Show toasty guy when a certain element is clicked:
JS:
import toasty from 'toasty';
toasty('.toasty');
HTML:
<button class="toasty">Click me!</button>
or just trigger it directly:
import toasty from 'toasty';
let t = toasty();
t.trigger();
Generate an example in example/dist
:
$ npm run example
Generate a standalone build in dist
(for use with <script>
tags and AMD module loaders):
$ npm run build:standalone
Run tests with karma and mocha:
$ npm test
MIT