Before the digital technology available today, it would require a lot of time and effort to achieve an effect like this. Without modern editing software, you would need to construct a set to prepare for this shot.
The best way to produce this effect is to take a straight shot of the product. If the shot is taken at an angle you will need oblique reversals which is very time-consuming. The product itself will have an impact on how successful this technique is.