Properties
Lists the Lottie-Player properties for playing animations.
Property | Description | Type | Default Value |
---|---|---|---|
| When set to | boolean | false |
| Background color. By default, the background is transparent and will take the color of the parent container. | string | Not defined |
| When set to | boolean | false |
| Number of times to loop the animation | number | Not defined |
| Direction of the animation. Set to 1 to play the animation forward or set to -1 to play it backward. | number - Either 1 or -1 | 1 |
| When set to | boolean | false |
| When set to | boolean | false |
| Play mode. Setting the mode to | Either |
|
| Valid value to preserve the aspect ratio. See the Mozilla documentation for more information. | string |
|
| The renderer to use for the animation | string - Either 'svg', 'html' or 'canvas' | svg |
| Animation speed. Set this parameter to any positive number. | number | 1 |
| The animation to play, either Bodymovin JSON data or a URL to a JSON file. This parameter is mandatory. | string | undefined |
| Duration (in milliseconds) to pause before playing each cycle in a looped animation. Set this parameter to 0 (no pause) or any positive number. | number | 1 |
| Disables verification of the Lottie animation before loading it. | boolean | false |
Last updated