toast.js

0.0.4 • Public • Published

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
 

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i toast.js

    Weekly Downloads

    2

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • frend.wong