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
The desired effect is to be able to go from the far left of the screen to the far right, depending on the size of the different screens.
Actual Behavior
Since the lottie json file is given a width of 375, some iPhones will not display it correctly, and the left and right sides will be spaced apart.
I tried:
I tried changing the contentMode of the LottieAnimationView to scaleAspectFill and setting masksToBounds to false, which correctly starts at the edge of the screen and ends at the edge of the screen, but causes the animation layer to become larger.
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
-
Which Version of Lottie are you using?
Lottie 4.4.1
Expected Behavior
The desired effect is to be able to go from the far left of the screen to the far right, depending on the size of the different screens.
Actual Behavior
Since the lottie json file is given a width of 375, some iPhones will not display it correctly, and the left and right sides will be spaced apart.
I tried:
I tried changing the contentMode of the LottieAnimationView to
scaleAspectFill
and settingmasksToBounds
to false, which correctly starts at the edge of the screen and ends at the edge of the screen, but causes the animation layer to become larger.Animation JSON
Beta Was this translation helpful? Give feedback.
All reactions