Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

Ti.Animation

Buy Me A Coke donate button

gif

Appcelerator Titanium Android module to support smooth and scalable animations using Airbnb Lottie.

⚠️ The versions iOS 2.0.0 and Android 3.0.0 contain a breaking change that removed the Facebook Keyframes library. We decided to go with a Lottie only library for the future, since it made the race for the best animation library. Also, the deprecated method addViewToLayer is now removed. Please continue to use addViewToKeypathLayer.

Migrate from iOS < 2.0.0 and Android < 3.0.0

Instead of using createLottieView, simply use createAnimationView now. That's it!

Requirements

  • Axway Titanium SDK 7.0.0+
  • Axway Titanium SDK 9.0.0+ for Ti.Animation 4.0.0+

Library versions:

The Titanium modules use external libraries

Library Platform Version Build Date
Airbnb Lottie Android 3.4.0 2020/02/22
Airbnb Lottie iOS 2.5.2 2018/12/10

Create a View

var animation = TiAnimation.createAnimationView({
  file: '/file.json',
  loop: false,
  autoStart: false
});

or in Alloy:

<AnimationView id='view_lottie' module='ti.animation' />

Update native Libraries

  • iOS: Use Carthage and carthage update to compile the framework automatically. Then, copy the output from ios/Carthage/Build/iOS to ios/platform/.
  • Android: change the version number in build.gradle

Features/Documentation

Visit the wiki for the documentation.

Example

Please see the basic example in example/app.js. More examples can found in the wiki

Resources

Authors

Patreon donate button

You can’t perform that action at this time.