Use the sliders to adjust the number of boxes and the speed of rotation. Drag the “Rotation speed” slider all the way to the left to disable rotation.
Inspired by this YouTube video.
For the rainbow version, see this block.