blob: bf384de229dfcba518c63b843b7e206e3f50cd27 [file] [log] [blame]
package com.airbnb.lottie;
import java.util.List;
import static com.airbnb.lottie.MiscUtils.lerp;
class FloatKeyframeAnimation extends KeyframeAnimation<Float> {
FloatKeyframeAnimation(List<Keyframe<Float>> keyframes) {
super(keyframes);
}
@Override Float getValue(Keyframe<Float> keyframe, float keyframeProgress) {
return lerp(keyframe.startValue, keyframe.endValue, keyframeProgress);
}
}