You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #2437 on June 18, 2024 15:12.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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