A tiny plugin to display content message. Animation dependcies on animate.css.
-
toast.info(options)
-
toast.error(options)
-
toast.sucess(options)
content infomation
refers to animate.css, more animation support you can refer to animate.css and extend this plugin. Default support such as:
-
animateIn
-
shake
-
fadeIn
-
flipInX
-
fadeInUp
-
animateOut
-
flipOutX
-
fadeOutUp
-
fadeOutDown
duration time, default 2000ms.
trigger custom
callback
when animation complete.
git clone https://github.com/FrendEr/toast.js.git
cd toast.js
open styles-demo.html