Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 days 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-05T14:15:14.000Z (over 1 year ago)
- Last Synced: 2024-12-17T19:18:59.359Z (6 days 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)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/lottie%20%E6%B5%8B%E8%AF%951.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/lottie%20%E6%B5%8B%E8%AF%952.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/lottie%20%E6%B5%8B%E8%AF%953.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/lottie%20%E6%B5%8B%E8%AF%954.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/lottie%20%E6%B5%8B%E8%AF%955.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/lottie%20%E6%B5%8B%E8%AF%956.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/lottie%20%E6%B5%8B%E8%AF%957.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB8.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB10.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB12.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB13.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB15.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB16.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB17.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB18.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB19.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB20.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB21.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB22.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB23.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB24.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB25.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB26.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB28.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB30.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB32.gif)
![image](https://github.com/xiejiang2014/Xiejiang.SKLottie.Samples/blob/main/Gallery/%E5%8A%A8%E7%94%BB33.gif)