An Interface that continuously listens for an animation frame.
This will be about 60 times per second, though 75, 120, and 144 are also widely used.
To balance this out in your animation, the current time is provided each frame.
To get a delta, you could use Web.Time.posixRequest
to get a start time and check with e.g. Duration.from how far you've progressed in the timeline.
Note: To improve performance and battery life, most browsers pause these notifications when the app is running in a background tab or a hidden <iframe>.
An
Interfacethat continuously listens for an animation frame. This will be about 60 times per second, though 75, 120, and 144 are also widely used. To balance this out in your animation, the current time is provided each frame.To get a delta, you could use
Web.Time.posixRequestto get a start time and check with e.g.Duration.fromhow far you've progressed in the timeline.Note: To improve performance and battery life, most browsers pause these notifications when the app is running in a background tab or a hidden <iframe>.
Replacement for
Browser.Events.onAnimationFrameNote: uses
window.requestAnimationFrame.