You can try this plugin here: http://gate8team.github.io/
- Include jQuery script in your page.
- Include mkjs.js script.
-
Define mkJS block and pass object with parameters:
$('.b-toasty').mkJS({ soundToPlay: './static/sounds/toasty.mp3', autoPlay: true });
-
To make toasty appear + disappear you can simple use:
$('.b-toasty').mkJS('toasty');
-
To make toasty appear you can simple use:
$('.b-toasty').mkJS('toastyIn');
-
To make toasty disappear you can simple use:
$('.b-toasty').mkJS('toastyOut');