use requestAnimationFrame & update demo
Merge branch 'master' into gh-pages