Blazorise Lottie Animation API
Explore the Blazorise Lottie Animation API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Lottie Animation documentation.
API
Parameters
| Parameter | Default | Type |
|---|---|---|
CurrentFrame | 0 | double |
Current playback frame | ||
Direction | Forward | LottieAnimationDirection |
Animation playback direction Possible values: ForwardBackward | ||
Loop | true | LoopConfiguration |
Whether or not the animation should loop, or a number of times the animation should loop. | ||
Path | — | string |
Relative or absolute path to the animation object | ||
Paused | false | bool |
Whether or not the animation is paused | ||
Renderer | Svg | LottieAnimationRenderer |
Renderer to use Possible values: SvgCanvasHtml | ||
Speed | 1.0 | double |
Animation playback speed | ||
Events
| Event | Type |
|---|---|
Completed | EventCallback |
Called when the animation completes | |
CurrentFrameChanged | EventCallback<double> |
Called when the current frame changes Warning: This event is triggered extremely frequently. Subscribing to this event can cause a significant increase in the amount of messages sent over the websocket if using Blazor Server. | |
Loaded | EventCallback<LottieAnimationLoadedEventArgs> |
Notifies when the PDF document finishes loading. | |
LoopCompleted | EventCallback |
Called when a loop completes | |