• This repository has been archived on 03/Nov/2023
  • Stars
    star
    117
  • Rank 301,828 (Top 6 %)
  • Language
    C++
  • License
    MIT License
  • Created about 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

OpenGL/WebGL based Lottie animation player

Glottie

Glottie is an OpenGL player for lottie animations. It is a C++ software that has been designed from ground-up for lightness and portability. Its scene graph builder, geometry generator and animation sequencer have been designed strictly for the scope of lottie, making it the leanest lottie player.

Current state of project

Glottie is currently still under development and does not support all the features of the lottie format, as has been documented at https://github.com/airbnb/lottie-web/tree/master/docs/json.

This player can play lotties, but with the following limitations:

  • Borders are currently not supported.
  • Tweening of basic shapes is not supported.
  • Transformations of a parent layer or group (it) are not inherited.
  • Shape items currently unsupported are gFill, gStroke, merge, repeater, stroke and trim.
  • The only effects currently supported are color and fill.
  • No external sources are currently supported.

Contributing

Learn how you can contribute to this project.

Compiling Glottie

From a single codebase, Glottie can be compiled to:

  • WASM (using Emscripten)
  • Windows
  • Linux
  • MacOS

WASM

Currently Glottie has a configuration to compile only with Emscripten. The script to compile for WASM is wasm_build.

The only prerequisite for running the wasm_build script is a working Emscripten installation.

Windows

Compilation to Windows has been set up to use CMake. A preconfigured CMakeLists.txt is included in the Glottie codebase, which has been configured by default to compile for Windows 10.

The CMake configuration uses winclude as the include directory.

Glottie is compiled to Windows using Google ANGLE, and therefore uses ANGLE's EGL and GLES - with the compiler yielding a native DirectX player. The only other prerequisite library is SDL2.

Linux

Compilation to Linux is facilitated by the Bash script linux_build. The linux_build script uses include as the include directory.

MacOS

Compilation to MacOS is accomplished by running the script macos_build. The macos_build script uses include as the include directory.

Testing Glottie

For all platforms other than WASM, Glottie presently reads a JSON file from stdin. Hence, to run Glottie, simply pipe in a JSON file.

Linux and MacOS

cat <JSONfile> | glottie

Windows

type <JSONfile> | <CMAKE_INSTALL_PREFIX>/glottie.exe

WASM

The index.html file in examples/wasm is a base template for loading the WASM player.

More Repositories

1

lottie-player

Lottie viewer/player as an easy to use web component! https://lottiefiles.com/web-player
TypeScript
1,539
star
2

lottie-react

lottie web player as a react component
TypeScript
718
star
3

lottie-interactivity

A small javascript library to enable interactivity with Lottie animations
HTML
428
star
4

awesome-lottie

A curated list of bookmarks, libraries, tools and resources related to Lottie and Bodymovin
306
star
5

jlottie

A small-footprint lottie player in Javascript
CSS
182
star
6

dotlottie-web

Official LottieFiles player for rendering Lottie and dotLottie animations in the web. Supports React, Vue, Svelte, SolidJS and Web Components.
TypeScript
155
star
7

dotlottie-rs

A universal, high-performance Lottie and dotLottie player built with Rust. Offers smooth rendering across platforms, low resource consumption, and extensive compatibility. Features FFI bindings for Kotlin, Swift, and WASM for seamless integration in Android, iOS, and Web projects.
Rust
147
star
8

lottie-js

An object model for representing and manipulating the Lottie JSON structure in JS.
TypeScript
143
star
9

svelte-lottie-player

Lottie Player component for Svelte
HTML
136
star
10

lottie-vue

Lottie player wrapper for Vue.js
Vue
112
star
11

tgskit

Toolkit for dealing with Telegram Stickers and Bodymovin/Lottie animations.
TypeScript
62
star
12

relottie

Lottie processor powered by plugins
TypeScript
45
star
13

lottie-docs

Documentation for the lottie file format
Python
45
star
14

dotlottie-ios

.lottie player for iOS
C
41
star
15

dotlottie-android

Kotlin
37
star
16

svg-to-lottie-converter

SVG to Lottie API
Python
25
star
17

demo-audio-visualisation

Demonstration code for visualising audio with Lottie
C#
14
star
18

Course-for-Developers

In this quick course, you will learn the basics about implementing Lottie animations across your web and mobile apps.
10
star
19

lottie-theming

JavaScript
10
star
20

dotlottie-cs

C#
8
star
21

plugin-strapi

TypeScript
4
star
22

LottieNB

Simple insertion of Lottie player into Jupyter Notebooks
Jupyter Notebook
4
star
23

labs-epub3

Testing lottie support in an epub3 document
Shell
4
star
24

test-files

A collection of basic lotties to test lottie tooling
Python
3
star
25

lottie-styler

TypeScript
3
star
26

app-tutorial-lottieinteractions

A tutorial for Lottie Interactions
Swift
2
star
27

dotlottie-react-native

Kotlin
2
star
28

gltf-color

TypeScript
1
star