I'll tell you what's happening. The boxes are not moving but the shades on the various edges do have a direction. It means that if the cubes have an external black shade and internal white shade they look smaller. If the white area is outside then they look bigger. That's the trick.
its due to the way they flash its like when a car passes your window at night and the shadow of the window frame moves with the like just in the opposite direction