wasm-bindgen/examples/request-animation-frame

web-sys: requestAnimationFrame loop

View documentation for this example online or View compiled example online

You can build the example locally with:

$ ./build.sh

(or running the commands on Windows manually)

and then visiting http://localhost:8080 in a browser should run the example!