Gas Dissolving in a Liquid

A piston compresses the gas above a liquid. The higher the pressure, the denser the gas and the more gas dissolves in the liquid, until there is as much in it as above it (Henry's law). If you release the pressure quickly, the liquid is supersaturated. If the supersaturation is too high, bubbles can form.

Pressure
Release pressure
Speed

Simplifications: the gas above the liquid is replenished, its amount depends only on the pressure (as when breathing). In equilibrium there is as much gas in the liquid as above it; in reality each gas dissolves differently depending on the liquid. Here the gas leaves more slowly than it dissolved, so that the supersaturation can be observed. Time is strongly compressed. When and how many bubbles form is only meant as an illustration.