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
  • 583
  • 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
  • 82,057
  • 50
  • 264
  • 435