Suporte para crossbrowser RequestAnimationFrame
(function(w) { var lT = 0, a = [‘ms’, ‘moz’, ‘webkit’, ‘o’], i = a.length; while( –i > -1 && !w.requestAnimationFrame ){ w.requestAnimationFrame = w[a[i]+’RequestAnimationFrame’]; w.cancelAnimationFrame = w[a[i]+’CancelAnimationFrame’] || w[a[i]+’CancelRequestAnimationFrame’]; …
Continuar lendo