Infinity boxes employ a combination of dichroic and reflective glass to create the illusion of a box whose contents infinitely reflects within,
Dichroic glass has colour changing properties when viewed from different angles, similar to the rainbow pattern on the surface of an oil spill, a soap bubble or a butterfly's wings.
In physics, this is known as a thin-film effect, which happens when interference occurs when light waves reflecting off the top and bottom surfaces of a thin film interfere with one another.
A second type of glass is used that is extremely reflective, similar to that used in a one way mirror, so that light can enter the box and then reflect of every surface, creating the 'infinity' feedback loop effect.