Skip to content

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

License

Notifications You must be signed in to change notification settings

xiejiang2014/Xiejiang.SKLottie.Samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages