2018-12-10 23:50:19 +03:00
|
|
|
# web-sys: `requestAnimationFrame` loop
|
|
|
|
|
|
|
|
[View documentation for this example online][dox] or [View compiled example
|
|
|
|
online][compiled]
|
|
|
|
|
|
|
|
[compiled]: https://rustwasm.github.io/wasm-bindgen/exbuild/request-animation-frame/
|
2019-05-26 10:43:00 +03:00
|
|
|
[dox]: https://rustwasm.github.io/docs/wasm-bindgen/examples/request-animation-frame.html
|
2018-12-10 23:50:19 +03:00
|
|
|
|
|
|
|
You can build the example locally with:
|
|
|
|
|
|
|
|
```
|
2019-01-09 02:14:15 +03:00
|
|
|
$ npm run serve
|
2018-12-10 23:50:19 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
and then visiting http://localhost:8080 in a browser should run the example!
|