Lottie-ios: Reverse Animation

Created on 7 Feb 2017  路  6Comments  路  Source: airbnb/lottie-ios

Is there a way to set the current progress and then set the end progress and then animate?

Ex:
ToValue: 0.0
FromValue: 0.5

enhancement

Most helpful comment

I haven't be able to get reverse animations to work yet!

All 6 comments

I haven't be able to get reverse animations to work yet!

@buba447 This would be an amazing feature.

I think there is some duplication of Lottie's animation code so this could be improved, but if you want to quickly see partial or reverse playback I've created a class here:

https://gist.github.com/allanweir/badefea836590cfe61edae915b6e40bf

If you set the animationSpeed to -1 it goes in reverse. Or is this not the reversal you want?

Using a -1 animationSpeed no longer works, but looks like support is planned for 2.0

Should be fixed in Lottie 2.0! If you still have a problem please create a new issue!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loganblevins picture loganblevins  路  3Comments

CentrumGuy picture CentrumGuy  路  4Comments

zhangjunmax picture zhangjunmax  路  3Comments

awschuerholz picture awschuerholz  路  3Comments

rdd7 picture rdd7  路  4Comments