barrard
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by barrard
-
-
Thanks Mikel, I checked out the thread and copied the path to my codepen, seems to work fine and remains at the end of the path.
But the other path you see the sprite jump back to (0 ,0) at the end of the path, why doesn't it remain at the end?See the Pen LYyqJwo by barrard (@barrard) on CodePen
The paths themselves aren't anything specific, but why does one box snap back to (0 ,0) and the other doesn't?
Thanks for any help!
- 1
-
I'm using pixi.js and gsap together in my project. GSAP handles animating my sprites along paths. Most of the time it works fine, but sometimes my sprite jumps to `{x: 0, y: 0}` at the end of a path. The example is using dummy data, but the issue happens thare as well. Am I using the gsap.to() method correctly? Thank you for any help!
See the Pen LYyqJwo?editors=1111 by barrard (@barrard) on CodePen
-
I'm seeing this too, and now wondering if somewhere else my code is also changing the x/y position...?
Motion Path on complete sets position to x=0 and y = 0
in GSAP
Posted
Thanks for the quick response Jack! You read my mind lol. I really appreciate all the hard work the team puts into GSAP and the community, and I'm so thankful to have access to tools that make animating such a breeze. Thank you for the preview code as well, cheers!