How can I change the centre of rotation of objects during an animation?
Add multiple Child Of constraints and animate their influences as desired. But for the example usage above that's not required, merely disable the unwanted Location and Rotation transforms as shown: