bloody-animate

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i bloody-animate

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • bloodyowl