Vanilla Toast is a tiny, yet powerful JavaScript notification element that doesn't require any dependencies.
Live Demo
Demo application can be found in /demo
folder.
It shows all use cases.
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
Using npm:
npm install @kgadzinowski/vanilla-toast --save
Using Bower:
bower install vanilla-toast --save
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.
- Execute
gulp prod
. - Production files can be found in
/dist
folder.