eQuantic.UI.LottieThe eQuantic.UI.Lottie package provides high-performance animation support using the .lottie and .json formats via the @dotlottie/player-component web component.
Add the package to your project and register the service:
builder.Services.AddUI(options =>
The LottiePlayer component handles asset loading automatically via IRequireAssets.
Src = "https://assets.lottiefiles.com/animation.json",
It is recommended to use the .dotlottie format for smaller file sizes and better performance.
Src = "https://example.com/animation.lottie",
Src
string
URL to the animation file (.json or .dotlottie).
Autoplay
bool
Starts the animation automatically. Default: true.
Loop
bool
Loops the animation. Default: true.
Speed
double
Playback speed multiplier. Default: 1.
Background
string
Background color. Default: transparent.
Width
string?
CSS width property.
Height
string?
CSS height property.
Controls
bool
Shows the player's native control UI.