https://github.com/xiejiang2014/xiejiang.sklottie.samples
Demonstrates how to play Lottie animations in WPF or Avalonia using Xiejiang.SKLottie.
https://github.com/xiejiang2014/xiejiang.sklottie.samples
avalonia lottie skiasharp wpf
Last synced: 4 months ago
JSON representation
Demonstrates how to play Lottie animations in WPF or Avalonia using Xiejiang.SKLottie.
- Host: GitHub
- URL: https://github.com/xiejiang2014/xiejiang.sklottie.samples
- Owner: xiejiang2014
- License: mit
- Created: 2022-04-23T07:16:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-05T14:15:14.000Z (almost 2 years ago)
- Last Synced: 2024-12-17T19:18:59.359Z (4 months ago)
- Topics: avalonia, lottie, skiasharp, wpf
- Language: C#
- Homepage:
- Size: 28.2 MB
- Stars: 28
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
Demonstrates how to play Lottie animations in WPF or Avalonia using Xiejiang.SKLottie.
Nuget Packages:
- LottieLoader:
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+
- Xiejiang.SKLottie:
Draw the content in the LottieComposition with SkiaSharp.
- Xiejiang.SKLottie.Views.Wpf.
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](https://www.cnblogs.com/8u7tgyjire7890/p/15881159.html)



























