Skip to content

unao/rebound-js

This branch is 48 commits behind facebookarchive/rebound-js:master.

Folders and files

NameName
Last commit message
Last commit date
Oct 6, 2014
May 4, 2017
Jun 30, 2017
May 9, 2017
Aug 2, 2014
Aug 2, 2014
Jul 30, 2014
Apr 29, 2015
Mar 31, 2017
Sep 8, 2014
May 9, 2017
Aug 4, 2014
May 9, 2017
Jan 6, 2017
May 9, 2017
May 9, 2017

Repository files navigation

Build Status

REBOUND

Rebound is a simple library that models Spring dynamics for the purpose of driving physical animations.

ORIGIN

Rebound was originally written in Java to provide a lightweight physics system for Facebook Home and Chat Heads on Android. It’s now been adopted by several other Android applications. This JavaScript port was written to provide a quick way to demonstrate Rebound animations on the web for a conference talk. Since then the JavaScript version has been used to build some really nice interfaces. Check out brandonwalkin.com for an example.

OVERVIEW

The Library provides a SpringSystem for maintaining a set of Spring objects and iterating those Springs through a physics solver loop until equilibrium is achieved. The Spring class is the basic animation driver provided by Rebound. By attaching a listener to a Spring, you can observe its motion. The observer function is notified of position changes on the spring as it solves for equilibrium. These position updates can be mapped to an animation range to drive animated property updates on your user interface elements (translation, rotation, scale, etc).

Check out the docco, tests, and examples for more details.

About

Spring dynamics in JavaScript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.7%
  • CSS 4.3%
  • HTML 1.0%