1 import { AnimationFrameScheduler } from './AnimationFrameScheduler';
4 * Animation Frame Scheduler
6 * <span class="informal">Perform task when `window.requestAnimationFrame` would fire</span>
8 * When `animationFrame` scheduler is used with delay, it will fall back to {@link asyncScheduler} scheduler
11 * Without delay, `animationFrame` scheduler can be used to create smooth browser animations.
12 * It makes sure scheduled task will happen just before next browser content repaint,
13 * thus performing animations as efficiently as possible.
16 * Schedule div height animation
18 * // html: <div style="background: #0ff;"></div>
19 * import { animationFrameScheduler } from 'rxjs';
21 * const div = document.querySelector('div');
23 * animationFrameScheduler.schedule(function(height) {
24 * div.style.height = height + "px";
26 * this.schedule(height + 1); // `this` references currently executing Action,
27 * // which we reschedule with new state
30 * // You will see a div element growing in height
33 export declare const animationFrameScheduler: AnimationFrameScheduler;
35 * @deprecated renamed. Use {@link animationFrameScheduler}
37 export declare const animationFrame: AnimationFrameScheduler;