0.0.9 • Published 8 years ago

animate.css-js v0.0.9

Weekly downloads
17
License
MIT
Repository
github
Last release
8 years ago

animate.css-js

Javascript helper for animate.css

How to use

add the animate.css styles

var animateCss = require('animate.css-js'); // Or add animateCss.bundle.js for the standalone version
var element = document.querySelector('.some-element');

// use animateCss.show(..), animateCss.hide(..) 
// or animateCss.animate(..)

API

  • animate(element, [, options])
    • options:
      • animationName {string} - one of the animate.css animation names
      • duration {number} - the animation duration in ms
      • callbacks {function[]}
  • show(element[, options])
    • options:
      • animationName {string} - one of the animate.css animation names, defaults to 'slideInDown'
      • duration {number} - the animation duration in ms, defaults to 350
      • callbacks {function[]}
  • hide(element[, options])
    • options:
      • animationName {string} - one of the animate.css animation names, defaults to 'slideOutUp'
      • duration {number} - the animation duration in ms, defaults to 350
      • callbacks {function[]}

Example

animateCss.animate( element, {
    animationName: 'zoomIn',
    duration: 500,
    callbacks: [
        function(){
            // zoomIn animation complete, do sth
        }
    ]
});

build

$ npm install
$ npm run build

License

MIT

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago