0.1.0 • Published 10 years ago

bloody-animate v0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
10 years ago

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

  • element : element to animate
  • animation : css string (e.g keyFrameName .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")
  })
0.1.0

10 years ago

0.0.0

10 years ago