Properties
The DotLottiePlayer
component accepts the following props:
Prop | Description | Type | Default |
---|---|---|---|
| Animation data or URL |
|
|
| Get player object |
|
|
| Autoplay animation on load |
|
|
| Background color |
|
|
| Play direction |
|
|
| Whether to play on mouse hover |
|
|
| Pause between loops |
|
|
| Whether to loop animation |
|
|
| Play mode |
|
|
| How to render |
|
|
| Play speed |
|
|
| Listen to player events |
|
|
| Sets the initial animation to be played. |
|
|
| Enables the lottie-worker script to play the animation using a web-worker. |
|
|
Last updated