| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| gravity.js | 2012-02-25 | 1.3 kB | |
| Totals: 1 Item | 1.3 kB | 0 | |
HTML Gravity is a javascript based project, which provides functionality for Free Fallling HTML elements. The gravitational force on each element is specific to Height & Width of the elements. Easy to implement, HTML gravity can be incorporated in two simple steps. 1. Include the javascript source in the Head tag. <script type="text/javascript" src="gravity.js" language="javascript"> 2. Use "creategravity()" function to force gravitational parameters. creategravity(id,init,inv) "id" : Html ID of the element. "init": Initital distance from the ceiling. "inv" : Initial acceleration towards the floor on the element. The Source files for Javascript can be found in "Source" folder. The implemented examples can be seen in examples folder. The complete source can be downloaded as gravity.zip. To view implemented examples see http://webbit.in/project/gravity/Examples/example1.html http://webbit.in/project/gravity/Examples/example2.html