The bubbles are glass spheres filled with a colored liquid mixture. As the temperature of the liquid changes, it either expands or contracts, thereby changing its density.
eBay