LottieAnimation
AnimationOptions
Lottie animation data.
If true
will be the first animation to play when loaded on a dotlottie-player with multiple animations.
A URL of where to fetch the animation. The animation isn’t fetched when the LottieAnimation is constructed but on a call to DotLottie.build()
or one of its export methods (toJson, toArrayBuffer, toBase64, toBlob)
.
Additional options
A unique id for the animation.
Either 1 for forward and -1 for backwards playback.
Can either be 'normal'
or 'bounce'.
Animation playback speed.
Methods
Export and util methods
Returns the animation data as an ArrayBuffer
.
Returns the animation data as a Base64 encoded string.
Returns the animation data as a Blob
.
Return the animation data as a JSON object.
If the animation data is not already set, it will be fetched from the provided url.