airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native

Home Page:http://airbnb.io/lottie/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GradientColorKeyframeAnimation does not handle progress outside [0,1]

brudaswen opened this issue · comments

commented

Describe the bug
According to documentation of BaseKeyframeAnimation.getValue progress outside of [0,1] should be supported as well:

keyframeProgress will be [0, 1] unless the interpolator has overshoot in which case, this should be able to handle values outside of that range.

However, GradientColorKeyframeAnimation.getValue/GradientColor.lerp do not handle this case.

What version of Lottie did you test this on?
6.2.0

What version of Android did you test this on?
Android 13

Steps To Reproduce
I can not attach a simplified version of our Lottie. But I am gonna prepare a PR in a second.

Screenshots

6.2.0 Expected
image image