onAnimationFrame method

dynamic onAnimationFrame(
  1. dynamic time,
  2. dynamic frame
)

Implementation

onAnimationFrame(time, frame) {
  animationLoop(time, frame);

  requestId = context.requestAnimationFrame(onAnimationFrame);
}