Tiny suspended particles are scattered randomly within a film, sandwiched between two glass sheets.
When voltage is applied, an electrical current forces the particles to align in a straight line, which allows light to pass through, turning the glass from frosted to transparent.