Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 430 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 430 Bytes

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
}