Multi points animation

Hi everyone,

Im trying to make a basic animation, I have a cube - when I click on it it moves up, I click again it moves down,
I want to be able to move the cube from a to b to c (among three or more points),
Im using react-spring, here is my codesandbox: