What's the trick?
Have your friend in the initial frame. Start panning slowly. Signal them (or yell or whatever, it's taking a picture, audio isn't being recorded or anything...) once they're not on camera. Have them run around behind you strike another pose just ahead of the camera. Repeat as many times as you can for maximum fun. I've managed to get the same person in frame three times. Might be even more fun if you have entire groups of people appear multiple times... Actually, I just got a great idea for a family activity tonight...