Why is the earth warming up?
Infared radiation is emitted by the sun.
Some of this radiation is absorbed by the earth and some is emitted back out into the atmosphere.
There are lots of greenhouse gases, like methane and carbon dioxide in the atmosphere.
Greenhouse gases are very good at emitting Infared radiation.
When the radiation is emitted by earth, some may hit a greenhouse gas.
When this happens, the greenhouse gas will emit the infared in all directions and it will be absorbed by the earth again.