Properties

The DotLottiePlayer component accepts the following props:

PropDescriptionTypeDefault
workerEnables the lottie-worker script to play the animation using a web-worker.booleanfalse
autoplayAutoplay animation on loadbooleanfalse
lottieRefGet player objectMutableRefObjectundefined
intermissionPause between loopsnumber0
loopWhether to loop animationbooleanfalse
hoverWhether to play on mouse hoverbooleanfalse
backgroundBackground colorstringtransparent
src (required)Animation data or URL`Record<string, unknown>string`
directionPlay direction`1-1`
playModePlay mode`‘normal’‘bounce’`
onEventListen to player eventsfunctionundefined
speedPlay speednumber1
rendererHow to render`‘svg’‘html’
activeAnimationIdSets the initial animation to be played.stringundefined