If you hold the
cmd key, you'll see the crosshairs in the middle of your selection turn into a control handle.
While continuing to hold
cmd, you can drag that control handle to change the origin.
You can also change this very accurately using the
origin (X and Y) property in the timeline.
origin, like almost every other property, can be animated using keyframes & tweens.