Alignment Rect for Lottie Animations #2438
lucab-spotify
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a question.
What is the best way to have alignment rects in Lottie Animations?
My use case is that I need to manage toogle states with lottie animations in a similar fashion to the heart icon toogle in lottie-ios README file
What I need is a way to know what is the alignment rect that is meant to be used to align the lottie animations.
For example if I'm showing this animation inside a button icon that shows content in a 44x44 points container I want that 44x44 to match the following alignment rect:
where the heart is the final state of the toogle animations.
Is there a way of achieve this? Am I thinking about this problem from the right angle.
Which Version of Lottie are you using?
Lottie 4.4.2
Beta Was this translation helpful? Give feedback.
All reactions