Jas
March 1, 2020, 11:32am
#1
I’m having trouble making a responsive Lottie animation scale from the top-right corner instead of scaling from the center.
I’m not sure I’m missing something in Hype or if I need to change something in the Lotties javascript code itself.
Here’s an example or what mean:
lottie_test.zip (14.8 KB)
MaxZieb
(Loves Hype)
March 1, 2020, 12:03pm
#2
Haven’t looked at your example as I am not on a computer (currently on the phone). Check the transformation origin in The Hype inspector and set it to zero on each axis.
jonathan
(Jonathan Deutsch)
March 2, 2020, 7:48pm
#3
Your current settings are that it is to be pinned to the top, pinned to the right, and proportionately scale based on the window size. This is happening:
I’m unclear on how this is different from your desired behavior?
2 Likes
Jas
March 3, 2020, 6:52pm
#4
Thank you for your replies
@jonathan
Perhaps it’s easier to see what I mean here:
I want the lottie animation to stay on top as it resizes, instead of moving to the center.
tg2k
(Marc)
March 3, 2020, 7:12pm
#5
@Jas ,
Just move the iframe to the top right corner:
Best Regards,
@tg2k
1 Like
h_classen
(Hans-Gerd Claßen)
March 3, 2020, 7:14pm
#6
your container has to have the proportions of the svg 1550x320 …lottie_test.hype.zip (13.7 KB)
1 Like