Home

Awesome

animate

browser support)

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

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")
  })