Skip to main content

Lottie

A lottie is special type of image, usually an animation.

Usage#

Loading Bar lottie#

Loading Icon lottie#

On Top Of Everything#

If the lottie needs to be on top of everything else, it can be done by using the ModalLottie

Props#

NameTypeDefaultDescription
sourcelottie fileundefinedThe lottie file
speednumber1The animation speed
loadingTextstringundefinedText underneath the lottie
loopbooleanundefinedMake the lottie loop
coverbooleanundefinedMakes it fullscreen
stopAnimationAtnumberundefinedResets the animation at the frame
fromFramenumberundefinedStarts the animation at the frame number
toFramenumberundefinedstops the animation at the frame number
progressnumberundefinedCurrent progress for loading bar lottie (or similar)
autoPlaybooleantrueAuto-play the lottie when it is shown
playAnimationbooleanundefinedPlay/pause the lottie.
delaynumber0Second to wait before playing the animation
opacitynumberundefinedTransparent / opacity / alpha of the lottie
scalenumberundefinedMultiplier used to scale the lottie
onAnimationFinishfunction () => anyundefinedCallback that is called when the animation is finished