You guys gonna love this!
Good morning, please take a seat and watch that tofu wobble.
This is not CGI, it is honest work of a papercraftsman.
These are, in fact, 16 different papercubes that switch places in each frame. That technique is commonly known as replacement stopmotion.
Problem: It only works on the screen and not in reality.
Therefore, some good guy invented the zoetrope and some younger guy invented the stroboscope, and combined, they unleash their combined real life magic.
It is a wooden plate that you turn, making the stroboscope strobe in the frequency that makes the cubes look animated.
Problem: This doesn‘t work really well on the screen anymore. It is a bit like the Heisenberg uncertainty principle.