Basic cube movement animation

Hello,
Can someone point me how to create this kind of movement animation?

I tried to use vector sprint interp node but no luck, cant understand full process :confused: