When bleaching powder is mixed in water, it reacts with water and carbon dioxide from the air, to form calcium carbonate which imparts milkiness to the solution.
2CaOCl2 + H2O + CO2 → CaCO3 + CaCl2 + 2HClO