This animation shows how a carbon dioxide molecule vibrates when it absorbs heat.
Courtesy of UCAR (LEARN and COMET)