Malus's law: I = Imax cos2θ. Drag a filter, or use the sliders.
Swipe the picture sideways to see the whole wave.
The grids stand for the long polymer chains in a polarising filter. They absorb the part of the electric field that is parallel to the chains, so the light that gets through is polarised at right angles to them.
Real light oscillates about 5 × 1014 times each second. The animation is slowed down enormously so that you can see the wave.
Learn more in the Polarisation lesson.