This action is clearly done infront of the audiences so they can see what is happening. Everybody sees that the silk has been passed from the holes, and instantaneously, with the magician's glance, both the silk and the box will be on fire, so the audiences see the burning of the silk but the fire again vanishes but the silk has not been damaged.