Answer:
Function. The Earth's gravity attracts the pendulum. This swinging-back-and-forth force continues until the force that started the movement is not stronger than gravity, and then the pendulum is at rest again.
Step-by-step explanation:
back and forth under the action of gravity. And the swing continues moving back and forth without any extra outside help until friction (between the air and the swing and between the chains and the attachment points) slows it down and eventually stops it.