Layout
The layout
object accepts the following properties:
Property name | Type | Required | Default | Description |
---|---|---|---|---|
fit | string | ”contain” | The fit mode of the animation. Accepts “contain”, “cover”, “fill”, “fit-width”, “fit-height” and “none”. | |
align | [number, number] | [0.5, 0.5] | The alignment of the animation in the canvas. Origin is at the top-left corner where [0, 0] is the top-left corner and [1, 1] is the bottom-right corner. |