Lottie4J — Lottie Animations for Java & JavaFX

Lottie4J is a library for parsing Lottie animations as Java objects and playing them as JavaFX animations.

Current release: 1.2.4 (2026-06-15), see release notes.

Goal of the Lottie4J project

Provide a set of Java libraries that can:

  • Parse existing Lottie animations to Java objects.
  • Generate Lottie files from Java objects.
  • Play Lottie animations in JavaFX.

The goal is to achieve this by using a recent Java LTS version (21) with the use of Records to minimize the code and make the project easy to maintain, test, and extend.

The sources of this project are available on github.com/lottie4j/lottie4j.

Learn About Lottie

New to Lottie? Check out our introduction to the Lottie format to learn about this powerful animation format, its capabilities, and available resources.

Current status

Lottie4J is released and under active development. The library can parse Lottie files into Java objects, generate Lottie files from Java objects, and play animations in JavaFX, including keyframe interpolation, animated properties, shape rendering, fills and gradients, stroke styling, trim paths, layer transforms and parenting. It already handles many complex real-world animations.

Follow the progress in the status posts and check the release notes for the latest changes.