Opsins are the universal photoreceptor molecules of all visual systems in the animal kingdom.
They change from a resting state to a signalling state by absorbing light. This activates the G protein, resulting in a signalling cascade which produces physiological responses.
This process of capturing a photon and transforming it into a physiological response is known as phototransduction.