0.0.4 • Published 9 years ago

toast.js v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

Toast.js

A tiny plugin to display content message. Animation dependcies on animate.css.

API

  • toast.info(options)

  • toast.error(options)

  • toast.sucess(options)

Options

message

content infomation

animateIn && animateOut

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

duration time, default 2000ms.

callback

trigger custom callback when animation complete.

Demo

git clone https://github.com/FrendEr/toast.js.git
cd toast.js
open styles-demo.html
0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago