Animate object position

Hello,
I'm pretty new to shader writing in general, but I've been trying to replicate this way of animating an object position using a vertex shader (https://www.youtube.com/watch?v=A-nry6sPCfw at 14:30) but I don't understand how to feed the position information to the main output node.
If you can point me to some relevant documents too, I'd be happy because I wasn't able to find much documentation or examples.
Thanks
I'm pretty new to shader writing in general, but I've been trying to replicate this way of animating an object position using a vertex shader (https://www.youtube.com/watch?v=A-nry6sPCfw at 14:30) but I don't understand how to feed the position information to the main output node.
If you can point me to some relevant documents too, I'd be happy because I wasn't able to find much documentation or examples.
Thanks