Each bubble's skin is a soap film only a few hundred nanometers thick. Gravity drains liquid out of the film over time, thinning it—and as thickness falls, thin-film interference between light reflected off the outer and inner surfaces shifts which wavelengths cancel and which reinforce, sliding the visible hue through the spectrum. Once the film drains below roughly the wavelength of light, it goes dark and ruptures.