Hey,
Been using GSAP for a while now, but I have a problem with the snap feature of ThrowPropsPlugin.
I'm currently working on a project that includes pixi.js and I'm using GSAP to animate.
since I'm using pixi and not regular html elements I decided to use ThrowProps directly and not draggable.
here's a snippet:
this.tween = ThrowPropsPlugin.to(this, {
throwProps: {
x: {
velocity: 'auto',
min: 0,
max: 1000,
end: function (naturalStop) {
if (distanceFromAnotherPixiObject < 50) {
return anotherPixiObject.x