What is the principle of that bobbing head hall in Chengde Summer Resort?

There are two kinds, one is mechanical, one is remote control. Mechanical is a gear box in the head of the fan, the motor in the turn, driven gears, gear head driven rod, rod end fixed, so that turn up on the bobble head, remote control is a small internal micro-motor, motor shaft driven rod, bobble head.