0.1.0 • Published 12 years ago
bloody-animate v0.1.0
animate
install
$ npm install bloody-animaterequire
var animate = require("bloody-animate")api
animate(element, animation) > promise
animates element using the given animation cssText. (autoprefix)
options
element: element to animateanimation: css string (e.gkeyFrameName .3s ease-in-out)
example
var animate = require("bloody-animate")
animate(document.body, "appear .5s linear")
.then(function(date){
console.log("animationEnd", date)
document.body.classList.add("Body--initialised")
})
)