1

i have made this example

http://jsfiddle.net/mikulgohil/yc6Lb/

but the issue is that animation is not smooth
can you help me to make it smooth

Mikul Gohil
  • 533
  • 1
  • 7
  • 14

1 Answers1

7

To make animations smooth you need to use requestAnimationFrame() API.

http://paulirish.com/2011/requestanimationframe-for-smart-animating/

Mikko Ohtamaa
  • 76,495
  • 46
  • 227
  • 378