Hello! I am very new around here, learning gsap fow a couple of weeks now, and now I am implementing Scroll Magic into the mixture, and it works like a charm!
I have one problem right now, I have this tween, with this parameters:
let t1 = gsap.timeline();
t1.fromTo(".strawberry", 4, {
y: 0,
x: 0,
autoAlpha: 0
},
{ y: 150, x: 500, autoAlpha: 1, ease: Power3.easeInOut })
I am trying to move my "strawberry" class element from those coordinates (0, 0) to (150, 500), in the desktop layout it works just fine, but in a mobile layout, it doesn't, it moves the 150 and 500 units, obviously in mobile layout is a lot, so the element goes far away.
How can I set responsive values to my x and y parameters? Or what solution do you recommend?
Thanks and sorry for my English, keep to good work devs!