Animate the parenting of an object
You can use two Child of constraint with an animated influences:



In the above gif, there are two animated empties. The cube follows Empty first, then switches to Empty.001.