Awesome
🖼 Ti.Keyframes
⚠️ This module moved to the cross-platform reposiroty Ti.Animation to support both the Keyframes and the Lottie library in on centralized repository for iOS and Android. Please update to Ti.Animation, thx! ⚠️
Summary
Ti.Keyframes is an open-source project to support the Facebook Keyframes library in Appcelerator's Titanium Mobile. The module is currently supports starting, pausing, resuming and seeking a keyframe.
- For the Android version of this module, check out m1ga/ti.keyframes :rocket:
- For the Airbnb Lottie library, check out ti.lottie :rocket:
Requirements
- Titanium Mobile SDK 6.0.0.GA or later
- iOS 8.0 or later
- Xcode 8 or later
Features
- Create a new vector view using
var vectorView = Keyframes.createVectorView({resource: 'my_json'})
- Start a keyframe animation using
vectorView.startAnimation()
- Pause a keyframe animation using
vectorView.pauseAnimation()
- Resume a keyframe animation using
vectorView.resumeAnimation()
- Seek to a certain progress of a keyframe animation using
vectorView.seekToProgress(0.5)
Example
Please see the full-featured example in example/app.js
.
Author
Hans Knoechel (@hansemannnn / Web)
License
Apache 2.0
Contributing
Code contributions are greatly appreciated, please submit a new pull request!