Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

LottieFiles/dotlottie-cs

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

dotlottie-cs

This package enables functionality for the dotlottie format inside netstandard compatible applications.

The package is available at: https://www.nuget.org/packages/LottieFiles.DotLottie

Usage

  1. Install via package manager console or via nuget manager: dotnet add package LottieFiles.DotLottie

  2. Use

    var stream = File.OpenRead("example.lottie");
    DotLottie lottie = await DotLottie.OpenAsync(stream);
    var animation = lottie.FirstAnimation();
    var animationName = animation.Key;
    var animationJson = animation.Value;
    

Development

You can develop with your IDE of choice on Windows, macOS or Linux, typically Visual Studio, Jetbrains Rider or VS Code are good options. The project targets dotnet standard 2.0, and should work with NetFramework, NetCore and UWP.

We welcome feedback and contributions.

Documentation

Full documentation is available here

dotLottie Project Homepage

The dotLottie project site is https://dotlottie.io/intro/