Try Install Learn Blog API Packages GitHub
Pages

AnimationFrame

This module provides a wrapper over the Animation Frame Web API.

Functions

cancel
(
id
:
Number
)
:
Number

Cancels a scheduled function call.

AnimationFrame.cancel(id)
request
(
method
:
Function(a)
)
:
Number

Schedules the function to run on the next frame, and returns its ID.

id = AnimationFrame.request(() { Debug.log("Hello") })