LottieFiles / lottie-js

An object model for representing and manipulating the Lottie JSON structure in JS.
MIT License
144 stars 19 forks source link

Missing value of last keyframe #49

Open aztack opened 2 months ago

aztack commented 2 months ago

This is the original lottie data.json where a layer with 2 scale keyframes and the second keyframe only has "t" property:

image

After animation.fromJSON(above-json). The keyframes do not have any value of last frame

image

Maybe copy previous keyframe's "s" property to the last keyframe's "s" property?

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.