Visible light is electromagnetic, short wave photonic energy. When it strikes the surface of the Earth, that which is not reflected away into space is absorbed and converted into heat (infrared energy). This heat is conducted throughout the material that absorbed it. Any air that comes into direct contact with it absorbs some of it via conduction and is then convected away. The remainder of the heat from the material’s surface is emitted away as infrared long waved radiation which passes freely through the small moleculed atmospheric gases of nitrogen, oxygen and argon. However, the larger atmospheric molecules such as carbon dioxide, water vapor, methane, etcetera have a quantum mechanics based affinity for absorbing and re-emitting this infrared radiation — thus, slowing down its escape into space. It is this blanketing effect on infrared radiation that makes life on Earth possible — for without it there could be no liquid water on the planet.
‘samslair blogspot greenhouse effect
Understanding the Greenhouse Effect: