How to swap 2 objects position?

Hi,

I have to 2 objects white and pink, I would like to swap their position every 4 or 5 seconds, prior the swap occur both objects will have a small shake. I am new to this and if anyone could help that would be great.

Thank you

Anyone could help please?