Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

Lottie-Windows

> 编程语言
Open source

Lottie-Windows is a library (and related tools) for rendering Lottie animations on Windows 10 and Windows 11.

713 stars0 likes0 views
WebsiteGitHub

About

Lottie-Windows is a library (and related tools) for rendering Lottie animations on Windows 10 and Windows 11.

Lottie-Windows

Lottie-Windows is a library for rendering Adobe After Effects animations natively in your application. This project adds Windows to the Lottie family of tools also targeting Android, iOS, and Web.

Lottie simplifies the design-to-code workflow for bringing engaging, interactive vector animations to your Windows applications, with significant improvements in terms of performance, quality, and engineering efficiency over traditional approaches such as gifs, manually coded animations, etc. Lottie-Windows uses the Windows.UI.Composition APIs to provide smooth 60fps animations and resolution-independent vector graphics.

Lottie-Windows consists of 3 related products:

  • Lottie-Windows library for parsing and translating Bodymovin JSON files
  • LottieGen command-line tool for generating C# or C++ code to be used instead of JSON
  • Lottie Viewer application for previewing JSON and also generating code

This repo also contains source code for samples.

Quick start

There are two options to integrate Lottie animations into your WinUI 3 or UWP project.

Option #1, using dynamic loader

  1. Install CommunityToolkit.WinUI.Lottie nuget package for WinUI project (or CommunityToolkit.Uwp.Lottie for UWP project).
  2. If you are using C# you may also need to install Microsoft.Graphics.Win2D (version 1.0.5 or below) for WinUI project (or Win2D.uwp and Microsoft.UI.Xaml for UWP project).
  3. In your .xaml markup file add:
        ...
        xmlns:lottie="using:CommunityToolkit.WinUI.Lottie"
        ...
        
            
        
    
    or for UWP project:
        ...
        xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
        xmlns:lottie="using:CommunityToolkit.WinUI.Lottie"
        ...
        
            
        
    

Option #2, using codegen (recommended)

  1. Install codegen tool using dotnet tool install lottiegen in powershell
  2. Run codegen tool lottiegen -InputFile MyAnimation.json -Language cs -WinUIVersion 3.0
    • For UWP projects use -WinUIVersion 2.X depending on the version of Microsoft.UI.Xaml
    • Other language options: cppwinrt and cppcx
  3. Add generated source files to the project
  4. Install packages from step 2 of Option #1 if needed.
  5. In your .xaml markup file add:
        ...
        xmlns:animatedvisuals="using:AnimatedVisuals"
        ...
        
            
        
    
    or for UWP project:
        ...
        xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
        xmlns:animatedvisuals="using:AnimatedVisuals"
        ...
        
            
        
    

Supported SDKs

  • May 2019 Update (18362) and later

Documentation

  • Documentation and Tutorials
  • Lottie Samples
  • Lottie Viewer

Build Status

Package Branch Status Latest nuget version
CommunityToolkit.WinUI.Lottie main
CommunityToolkit.Uwp.Lottie main
LottieGen main

Feedback and Requests

Please use GitHub Issues for bug reports and feature requests.

Principles

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#after-effectsanimationsbodymovincsharp

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言