mifi/react-lottie-player

No way to play back smoothly after using segments

ivanjeremic opened this issue · 2 comments

When I go from segment 15 to 94 for example onClick it stops there and this is fine, but how to go from that position again back and play it smoothly back?

I tried

  • reverse segment 94 to 15
  • reverse segment with direction 94 to 15 with -1 direction
  • only direction -1 with play

and none of them work properly.

If there is no way currently to do this we really need a function playTo where it play to a segment no matter if forward or backward, but if there is any way please help me out on this one.

Thanks

mifi commented

Hi

I'm not sure I understand, can you provide som eexample code or a video where you reproduce the problem in the demo?

I got myself in a fix with this too. Reversing segments (ie. updating the segment to [94, 15] ) and keeping the direction as 1 was the answer for me. I am not sure why it wouldn't work for you. Send some code?