facebookarchive / Keyframes

A library for converting Adobe AE shape based animations to a data format and playing it back on Android and iOS devices.
https://facebookincubator.github.io/Keyframes/
Other
5.33k stars 302 forks source link

Add a startAnimationFromProgress method #70

Closed marmelroy closed 7 years ago

marmelroy commented 7 years ago

Hey! I found myself needing to start an animation from a random progress value (instead of from 0.0).

I tried a combination of seekToProgress + start/resume but it didn't work.To support this use case I added a startAnimationFromProgress method.

It seems like this need is shared by other users of the framework - see https://github.com/facebookincubator/Keyframes/issues/46

This was tested on device and works well.

marmelroy commented 7 years ago

Seeing some issues with this... closing until fixed.