Awesome
animate
install
$ npm install bloody-animate
require
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")
})