Basically, the girlfriend is a separate sprite from her hair, which has it's own animation that syncs with her head bob but adds that "bounce" effect that we see in the game.