How clothes that change color with the sun "work"? ☀️

This summer the ban has been opened for the mass public, but how does it work – and because – clothes that change color with the sun?