Lottie-ios: Trim Paths & Offset - Easing causes glitches

Created on 16 Aug 2017  路  5Comments  路  Source: airbnb/lottie-ios

Check these before submitting:

  • [x ] Updated to the latest (2.0.5) version of Lottie
  • [x ] The issue doesnt involve and Unsupported Feature
  • [x ] This issue isnt related to another open issue

This issue is a

  • [x ] Non-Crashing (Visual or otherwise) Bug
  • [ ] Crashing Bug
  • [ ] Feature Request
  • [ ] Regression (Something that once worked doesnt work anymore)

What Platform are you on?

  • [ ] MacOS (Specify Platform Version)
  • [Latest ] iOS (Specify Platform Version)

Expected Behavior

circle-ae

Actual Behavior

circle-ios

Animation JSON

circle.json.zip

Hey all. I'm having issues when animating Trim Paths. Through deduction i've found that applying custom easing to the Start / End keyframes while animating the Offset value in a linear fashion causes visual bugs in iOS.

I've found that removing the easing all together seems to prevent the bugs from happening, but losing easing does limit me stylistically. Any help appreciated.

bug

Most helpful comment

That is a problem! Seems like some of my bezier math is off slightly! Looking into this!

All 5 comments

That is a problem! Seems like some of my bezier math is off slightly! Looking into this!

I can also state that I'm having the same issue or a related one. Animating a circle exactly like above using trim paths on a stroke layer. The animation at the bottom half of the circle seems to slow down even though there is no easing or a keyframe at this point. Its just normal linear animation. It makes it look as if the device is having problems animating the circle :(

image

image

Difference same animation Lottie V1.5.2 and V2.0.6
V1.5.2:
v1 5 2 success animation
V2.0.6:
v2 0 6 success animation
V1.5.2:
v1 5 2 fail animation
V2.0.6:
v2 0 6 fail animation

I have the same issue with animation like this.
If this will help you: on Android animation works well.

Should be fixed with https://github.com/airbnb/lottie-ios/pull/468
@mnsrv @Gerrel @vexkiddy @webdale

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amannayak0007 picture amannayak0007  路  3Comments

MaximKeegan picture MaximKeegan  路  3Comments

muraterd picture muraterd  路  5Comments

JanSzala picture JanSzala  路  5Comments

ricardohochman picture ricardohochman  路  4Comments