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 | Description | Type | Default |
|---|---|---|---|
CurrentFrame |
Current playback frame |
double | 0 |
Direction |
Animation playback direction Possible values: |
LottieAnimationDirection | default(LottieAnimationDirection) |
Loop |
Whether or not the animation should loop, or a number of times the animation should loop. |
LoopConfiguration | true |
Path |
Relative or absolute path to the animation object |
string | |
Paused |
Whether or not the animation is paused |
bool | false |
Renderer |
Renderer to use Possible values: |
LottieAnimationRenderer | LottieAnimationRenderer.Svg |
Speed |
Animation playback speed |
double | 1.0 |
Events
| Event | Description | Type |
|---|---|---|
Completed |
Called when the animation completes |
EventCallback |
CurrentFrameChanged |
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. |
EventCallback<double> |
Loaded |
Notifies when the PDF document finishes loading. |
EventCallback<LottieAnimationLoadedEventArgs> |
LoopCompleted |
Called when a loop completes |
EventCallback |