Vanilla Toast (vanilla-toast)
Vanilla Toast is a tiny, yet powerful JavaScript notification element that doesn't require any dependencies.
Demo
Live Demo
Demo application can be found in /demo
folder.
It shows all use cases.
Suggested Dependencies For Additional Support
This element is using pointer events. As of today not all browser support this feature.
Browser support
It might be necessary for you to use Pointer Events Polyfill
To Install With Bower
To use this element with Bower dependency manager, run:
bower install vanilla-toast --save
How To Develop
In order to develop this element, you need to have Node.js installed.
- Install all development dependencies using command
npm install
. - Start watching TypeScript and SCSS changes with
gulp watch-all
. - Edit!
On Linux systems, if you get error: Error: watch ... ENOSPC
when executing gulp watch-all
, then run echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
to fix it.
How To Create Production Release
- Execute
gulp prod
. - Production files can be found in
/dist
folder.