Properties
Last updated
Last updated
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
autoplay
autoplay
Autoplay animation on load.
boolean
false
background
background
Background color.
string
undefined
controls
controls
Show controls.
boolean
false
count
count
Number of times to loop animation.
number
undefined
direction
direction
Direction of animation.
number
1
hover
hover
Whether to play on mouse hover.
boolean
false
loop
loop
Whether to loop animation. When a number, will define the amount of times to loop.
string
false
playMode
playMode
Play mode.
PlayMode.Bounce | PlayMode.Normal
PlayMode.Normal
renderer
renderer
Renderer to use.
"svg"
'svg'
speed
speed
Animation speed.
number
1
src
src
URL to .lottie file or stringified JSON animation data.
string
undefined
intermission
intermission
Add a pause between loops.
number
1
activeAnimationId
activeAnimationId
Id of the first animation to play on load.
string
defaultTheme
defaultTheme
Default Lottie Style Sheet them to apply
string
worker
worker
Enables the lottie-worker script to play the animation using a web-worker.
boolean