animationFrame - scheduler

1
const animationFrame: any;

Perform task when window.requestAnimationFrame would fire.

When animationFrame scheduler is used with delay, it will fall back to async scheduler behaviour.

Without delay, animationFrame scheduler can be used to create smooth browser animations. It makes sure scheduled task will happen just before next browser content repaint, thus performing animations as efficiently as possible.