question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disabling animation clipping

See original GitHub issue

Hi team,

we have an animation which seems to be clipping at the top for some images. I wonder how we can disable clipping and draw out of the rectangle.

My IOS peer is using animationView.clipsToBounds = false which does work pretty well but I am struggling with the clipping in android.

I have tried android:scaleType="centerInside" and android:scaleType="centerCrop" on lottieAnimationView and for parent ConstraintLayout: android:clipChildren="false" android:clipToPadding="false"

Is there way how I can avoid the clipping and render out of bounds?

Screenshots Screen Shot 2021-06-16 at 1 34 44 PM Screen Shot 2021-06-16 at 1 34 20 PM

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

1reaction
gpealcommented, Jan 4, 2022

@Pavel87 It wasn’t really feasible until https://github.com/airbnb/lottie-android/pull/1952 landed. With this change, when using hardware acceleration, it might be more feasible.

1reaction
CherryLovercommented, Sep 14, 2021

I have same problem. Does any help to fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disabling clipping during animation - Esoteric Software
Thanks for the clipping feature, it works great! I'm just wondering if there is a way to turn it on and off during...
Read more >
unity - How to disable animation root motion
RootT" and expand it. Assuming the model moves in forward Z, right click on "RootT. Z" and click "Remove property."
Read more >
Animation bug while disabling and re enabling. - Unity Answers
Hello i'm using the animator component but when I disable it and re enable while the animation is playing the object stays where...
Read more >
Remove or turn off effects in Final Cut Pro - Apple Support
Select one or more clips with an effect in the Final Cut Pro timeline. Do one of the following: Choose Clip > Show...
Read more >
Maya Creative Help | Enable or disable clips | Autodesk
You can disable a clip to stop it from playing during the playback of its character's animation in Trax. If you later decide...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found