Giter VIP home page Giter VIP logo

lottie4j's Introduction

Lottie4J :: Java library to handle Lottie files

The aim is to create a JavaFX player capable of playing Lottie files.

https://lottiefiles.com/what-is-lottie

There is a Lottie Android project but this is aiming for native Android integration, not recent Java versions and/or JavaFX.

Lottie file format

dotLottie package: https://dotlottie.io/intro/#prelude

JSON Lottie animation file: https://lottiefiles.github.io/lottie-docs/schema/lottie.schema.json

Creating Lottie animations

Adobe AfterEffects is used a lot to create Lottie animations. But there is a free alternative: Haiku that was turned into an opensource project in August 2021.

Project structure

This project consists of different modules to make it easier to maintain and use only the required components when used in an application.

Core

  • Contains objects matching the Lottie data model.
  • Can read and write Lottie files (JSON and ZIP).
  • Uses records for the data objects, partially based on the solution provided in this StackOverflow question.

FXPlayer

IDE settings

To run the JavaFX Demo application, the JavaFX runtime is needed. You can install this separately by downloading it from the Gluon website, or use a JDK which has JavaFX included, for instance Azul Zulu.

$ sdk install java 17.0.3.fx-zulu

In your IDE select this SDK as the runtime for your project.

lottie4j's People

Contributors

fdelporte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lottie4j's Issues

More permissive license?

Nice idea actually, however the license is quite strict especially if someone wants to use it on closed source applications. Original lottie is Apache 2.0, any reason your repo is not under the same license?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.