All Projects → bytedance → Lottiefy

bytedance / Lottiefy

Licence: mit
Render Lottie to any engine

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Lottiefy

qtlottie
QtLottie is a tiny C++ library that can render Adobe® After Effects™ animations exported as JSON with Bodymovin.
Stars: ✭ 23 (-46.51%)
Mutual labels:  lottie
Zhumulangma
高仿喜马拉雅Android客户端,单activity多fragme组件化架构(新增ams版)
Stars: ✭ 377 (+776.74%)
Mutual labels:  lottie
Lottie Editor
A tool to edit colors in Lottie animations.
Stars: ✭ 595 (+1283.72%)
Mutual labels:  lottie
puppeteer-lottie-cli
CLI for rendering Lottie animations via Puppeteer to image, GIF, or MP4.
Stars: ✭ 85 (+97.67%)
Mutual labels:  lottie
Lottie Windows
Lottie-Windows is a library (and related tools) for rendering Lottie animations on Windows 10.
Stars: ✭ 322 (+648.84%)
Mutual labels:  lottie
Lottie Flutter
Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
Stars: ✭ 444 (+932.56%)
Mutual labels:  lottie
Jetpack-Compose-MVI-Demo
Demo / Sample Android Project created with Jetpack Compose and MVI Architecture Pattern
Stars: ✭ 114 (+165.12%)
Mutual labels:  lottie
Lottie Android
Render After Effects animations natively on Android and iOS, Web, and React Native
Stars: ✭ 32,189 (+74758.14%)
Mutual labels:  lottie
React Native Messenger
Facebook Messenger Implementation using react-native
Stars: ✭ 351 (+716.28%)
Mutual labels:  lottie
Fluttie
Easily display stunning Lottie animations in flutter apps with this plugin.
Stars: ✭ 463 (+976.74%)
Mutual labels:  lottie
LottieExampleProject
This is an example project for using Lottie in Android applications
Stars: ✭ 17 (-60.47%)
Mutual labels:  lottie
Ng Lottie
Render After Effects animations on Angular based on lottie-web
Stars: ✭ 311 (+623.26%)
Mutual labels:  lottie
React Native Pull Refresh
Custom pull to refresh component for Android
Stars: ✭ 456 (+960.47%)
Mutual labels:  lottie
tgskit
Toolkit for dealing with Telegram Stickers and Bodymovin/Lottie animations.
Stars: ✭ 45 (+4.65%)
Mutual labels:  lottie
Materialdialog Android
📱Android Library to implement animated, 😍beautiful, 🎨stylish Material Dialog in android apps easily.
Stars: ✭ 602 (+1300%)
Mutual labels:  lottie
streamlit-lottie
Streamlit component to render Lottie animations
Stars: ✭ 47 (+9.3%)
Mutual labels:  lottie
Urweatherview
Show the weather effects onto view written in Swift4.2
Stars: ✭ 439 (+920.93%)
Mutual labels:  lottie
Lottie Qml
QML Item for rendering Lottie Web animations in a QtQuick Canvas
Stars: ✭ 40 (-6.98%)
Mutual labels:  lottie
Cyltabbarcontroller
[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
Stars: ✭ 6,605 (+15260.47%)
Mutual labels:  lottie
Lottie Player
Lottie viewer/player as an easy to use web component! https://lottiefiles.com/web-player
Stars: ✭ 457 (+962.79%)
Mutual labels:  lottie

lottiefy npm

A toolkit to customize Lottie renderer. Demo here: https://lottiefy.js.org

Motivation

Lottie is a solution to transform Adobe After Effects animations directly to code. It already has web, Android and iOS renderers. But Sometimes we need more control. For example, developers may want to render Lottie to other engines, like Cocos2d-x and PixiJS. With lottiefy, you can customize your own renderer in these cases.

Notice: It is 0.x currently, and may have breaking changes in future. Please submit an issue if something went wrong.

Use cases

Renderer Description
@lottiefy/cocos2dx Render Lottie to Cocos2d-x(JS binding)
@lottiefy/cocos2dx-lua Generate Lua code to render Lottie to Cocos2d-x(Lua binding)
@lottiefy/pixi Render Lottie to PixiJS [WIP]
@lottiefy/spritejs Render Lottie to SpriteJS [WIP]
... ...

Installation

Install via NPM:

npm install --save lottiefy

Or just use UMD bundle via script tag:

<script src="https://unpkg.com/lottiefy/dist/lottiefy.min.js"></script>

Usage

import { LottieRenderer } from 'lottiefy'

const renderer = new LottieRenderer({
  animationData: {}, // JSON data exported by Bodymovin
  containerId: '', // The id of container to render
  actions: {
    createPrecomp(id, payload) {
      // Specify how to create a precomp
      // ...
    },
    createImage(id, payload) {
      // Specify how to create an image
      // ...
    },
    // ...

    // List of all actions:
    // https://github.com/pd4d10/lottiefy/blob/master/src/types.ts#L53
    // Notice that all actions should be specified to make it works correctly
  },

  // Some engines like Cocos2d-x have opposite Y coordinate with Adobe After effects
  // Set reverseY to true in these cases, default is false
  reverseY: false,

  // Set animation speed
  speed: 1,
})

// Call generateAnimations to run all actions
renderer.generateAnimations()

Roadmap

  • [x] Precomp
  • [x] Image
  • [ ] Shape
  • [ ] Effect
  • [ ] ...

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].