โ ๏ธ 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!โ ๏ธ
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 ๐
- For the Airbnb Lottie library, check out ti.lottie ๐
- Titanium Mobile SDK 6.0.0.GA or later
- iOS 8.0 or later
- Xcode 8 or later
- 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)
Please see the full-featured example in example/app.js
.
Hans Knoechel (@hansemannnn / Web)
Apache 2.0
Code contributions are greatly appreciated, please submit a new pull request!