Friday, December 20, 2013

HTML5 and DOM animation



HTML5 animation used Canvas. Call raf,js
using requestAnimationFrame, For example
function loop() {
   requestAnimationFrame(loop);
}
DOM animation:
To change a position of an object
<div id="box"></div>
Js script
d= doucment.getElementById("box);
d.style.left = x + "px";
d.style.top = y + "py";

JavaScript 3d library
http://threejs.org/

CreateJS: A suite of Javascript libraries & tools for building rich, interactive experiences with HTML5.
http://www.createjs.com

No comments:

Post a Comment