It rocked every time it was about to move, sometimes to adjust it's position, other times to preen. Apparently it's part of its camouflage, it rocks slowly to mimic leaves moving in the wind. The theory being that if it stayed still & then preened it would be more obvious than rocking first.