First of all, sorry for bringing this post back to activity!
@OSUblake that pen has been super helpful with understanding modifiers, and also how to replace _gsTransform with getProperty, which was a bit confusing at first. After playing around with it for a while trying to achieve different results though, I'm completely lost.
One of the things I've been trying to do is to get the end of the trail to not deviate away that much from its original path. If you trace a square-shaped path with the mouse, the trail rounds up fast and the shape is lost super quick, and I'd like it to keep its shape for a bit longer. What's confusing here is that I don't see much of a difference (almost none) in the results when trying different values, even when using completely random ones like here.
gsap.set(line, { x: -1500, y: -750 });
let pos = gsap.getProperty(line);
gsap.to(line, {
duration: 10000,
x: "+=150",
y: "+=10",
repeat: -1,
ease: "expo.inOut",
..
});
I thought I understood, but the more time I spend on it, the more lost I feel! Also, and since this is my first post ever, thank you for the consistently amazing help you guys provide on the forum, it's just incredibe how responsive and helpful this community always is. ?
https://codepen.io/cerdupel/pen/ExEKvmb