How to play animation in reverse when using CoreAnimation Rendering Engine ? #1907
Unanswered
NitishGadangi
asked this question in
Q&A
Replies: 1 comment 8 replies
-
Could you share a sample project that demonstrates this issue? This works correctly when I test it locally |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Which Version of Lottie are you using?
Lottie 4.0.1
Question
This is the case when we are looking to play animation between frames using
play(fromFrame: AnimationFrameTime?, toFrame: AnimationFrameTime)
and fromFrame is greater than toFrame (from: EndFrame, to: StartingFrame). Thus resulting in a reverse animation.This is working as expected when using
RenderingEngineOption.mainThread
. But when set toRenderingEngineOption.automatic
/RenderingEngineOption.coreAnimation
it's failing to play. Any other way to play the animation in reverse usingautomatic
rendering engine.Expected / mainThread Rendering Engine
play(fromFrame: 14, toFrame: 0)
expected.mov
With Automatic / CoreAnimation Rendering Engine
play(fromFrame: 14, toFrame: 0)
reality.mov
Lottie Json
Beta Was this translation helpful? Give feedback.
All reactions