airbnb/lottie-ios

Trim Paths timing is out of sync

Open

#1,717 建立於 2022年8月12日

在 GitHub 查看
 (14 留言) (0 反應) (0 負責人)Swift (26,751 star) (3,831 fork)batch import
bughelp wanted

描述

Hi there, I am having issues with Trim Paths and an Alpha Inverted Matte being out of sync. On Android/ Web it plays as expected: the Trim Paths and the Matte play in sync with the animation of the "diamond" shape, so it always trails behind the "diamond" shape. But on iOS, the Trim Paths renders out of sync with a different timing, or could be interpreting different "Start/End" values perhaps? The Trim Path jumps out in front of the "diamond" shape, and breaks the illusion of a motion trail always staying behind the "diamond" shape.

Secondly, the Alpha Inverted Matte is out of sync, creating a stuttering effect. The Alpha Inverted Matte is parented to another layer, but it's not moving in sync with its parent. So it's creating a stuttering, time delay that's visually apparent due to the Matte layer's position being out of sync with it's parent.

Lastly, when the AlphaInverted Matte is in use, it crashes my LottieFiles previewer app on iOS. For some reason, the Alpha Matte seems to be too much to process?

Here is the AEP: https://www.dropbox.com/s/gwbvdo281s3dfno/TrimPathsBug_public.aep?dl=0

Which Version of Lottie are you using?

Lottie 3.3.0 iOS 15.6 iPhone 12 mini

Expected Behavior

ExpectedBehavior

Actual Behavior

iOS_bug

Animation JSON

https://lottiefiles.com/share/thkvqxz3

貢獻者指南