So what I want to do is something that has turned out to be complicated, but I will try to explain it to the best of my ability. I'm using Unity EventSystems events to detect a pull. If the user draws the object horizontally, I want to render the animation relative to the object's position.
For example: If the user moves the item to position 0.5, I want the animation to play only at time 0.5, and if the user is retired to 0.2, the animation should be played at time 0.2
Currently I do not have any code because I do not know where to start.