example/index.js
function update() {
  el.style.transform = 'scale3d(' + s1(x) + ', ' + s2(y) + ', 1)';

  requestAnimationFrame(update);
}
function update() {
  el.style.transform = 'scale3d(' + s1(x) + ', ' + s2(y) + ', 1)';

  requestAnimationFrame(update);
}
function update ( ) { el . style . transform = 'scale3d(' + s1 ( x ) + ', ' + s2 ( y ) + ', 1)' ; requestAnimationFrame ( update ) ; }
Request Animation Frame logic.
Request Animation Frame logic .