Skip to content

Latest commit

 

History

History
83 lines (44 loc) · 4.23 KB

README.md

File metadata and controls

83 lines (44 loc) · 4.23 KB

Demonstrates how to play Lottie animations in WPF or Avalonia using Xiejiang.SKLottie.

Nuget Packages:

  1. LottieLoader:
  2. All the code is from https://github.com/CommunityToolkit/Lottie-Windows, I removed the UWP-related part, only kept the part that reads Lottie Json as LottieComposition object. Can run on .net core 3.1+
  3. Xiejiang.SKLottie:
  4. Draw the content in the LottieComposition with SkiaSharp.
  5. Xiejiang.SKLottie.Views.Wpf.
  6. Use SkiaSharp.Views.Wpf to present Lottie content in WPF.
In theory, it can support any environment where .net core3.1+ and SkiaSharp can run. But currently I've only made samples for WPF and Avalonia.

Currently in preview, there are many features of Lottie that are not yet supported. I have selected about 255 animations at https://lottiefiles.com/, of which about 193 can be played correctly. There are also some known performance issues, but they are not currently prioritized.

Thanks for the great project CommunityToolkit/Lottie-Windows.

=====================

more screenshots

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image