As a pendulum swings from the bottom position to the top position

kinetic energy is changed into potential energy

mechanical energy is changed into radiation

radiation is changed into friction

potential energy is changed into kinetic energy