0.0.2 • Published 9 years ago

believe v0.0.2

Weekly downloads
12
License
-
Repository
github
Last release
9 years ago

believe

Believe your js

Css3 Animation Engine

Demo: http://fritx.github.io/believe/demo

Usage

var believe = new Believe() // new instance
var pos1 = { x: 30, y: 60 }
var pos2 = { x: 30, y: 60 }
var $box1 = $('.box1')
var $box2 = $('.box2')

believe.bind($box1, pos2) // bind dom with pos data
believe.bind($box1, pos2)
believe.start(loop) // start with loop

function loop(){
  pos1.x += k
  pos2.y -= k
}