Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/we-lib/believe
Believe your js
https://github.com/we-lib/believe
Last synced: 23 days ago
JSON representation
Believe your js
- Host: GitHub
- URL: https://github.com/we-lib/believe
- Owner: we-lib
- Created: 2014-11-21T17:30:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-21T17:37:26.000Z (about 10 years ago)
- Last Synced: 2024-10-15T04:33:13.877Z (2 months ago)
- Language: CSS
- Size: 160 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# believe
Believe your js
> Css3 Animation Engine
Demo:
## Usage
```js
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 loopfunction loop(){
pos1.x += k
pos2.y -= k
}
```