src
- A string of the URL where the .riv
file is hosted (like in the example below), or the path to a local .riv
filecanvas
- The canvas element on which you want the animation to renderautoplay
- Boolean for whether you want the default animation to play.riv
file is hosted. Set this to the src
attribute when instantiating a Rive
object.riv
files in the project just as you would any other asset in your bundle, such as images or font filessrc
attribute, use the buffer
attribute to load in an ArrayBuffer when fetching a file. See an example here​