Folding a Cube

We require a third dimension to fold the cube, but we can watch the shadow of the process in two dimensions.