airbnb / lottie-web

Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/
MIT License
29.84k stars 2.85k forks source link

Subframe issue #3088

Open dnylnd opened 1 month ago

dnylnd commented 1 month ago

i'm doing a frame by frame animation and my path or mask path vertices number varying in every frame. when i check my animation in the lottie player the whole animation is ruined, because of the subframes.

but not everything is frame by frame. for postion or scale or etc... i just set a few keyframes.

so i set the keyframe interpolation to toggle hold. that solves the subframing issue, but my animation now is like dashed or jittery.

if the web developer upload the animation with animation.setSubframe(false) than it should solve this issue?

in after effects there is no subframes so my animation looks good. How to solve this?

here is a test about set the animation.setSubframe(false). and its weird

https://codepen.io/edokeh/pen/oNjYBrM